改名
This commit is contained in:
+13
-10
@@ -276,19 +276,22 @@ class Loader extends BaseObject
|
|||||||
{
|
{
|
||||||
$array = explode('/', $filePath);
|
$array = explode('/', $filePath);
|
||||||
array_pop($array);
|
array_pop($array);
|
||||||
$this->_directory['/' . implode('/', $array)][] = $className;
|
|
||||||
|
|
||||||
$directory = $this->splitDirectory($filePath);
|
$array = '/' . trim(implode('/', $array), '/');
|
||||||
array_pop($directory);
|
|
||||||
|
|
||||||
$tree = null;
|
$this->_directory[$array][] = $className;
|
||||||
foreach ($directory as $value) {
|
|
||||||
$tree = $this->getTree($tree, $value);
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($tree instanceof FileTree) {
|
// $directory = $this->splitDirectory($filePath);
|
||||||
$tree->addFile($className, $filePath);
|
// array_pop($directory);
|
||||||
}
|
//
|
||||||
|
// $tree = null;
|
||||||
|
// foreach ($directory as $value) {
|
||||||
|
// $tree = $this->getTree($tree, $value);
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// if ($tree instanceof FileTree) {
|
||||||
|
// $tree->addFile($className, $filePath);
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user