modify
This commit is contained in:
@@ -274,15 +274,18 @@ class Loader extends BaseObject
|
|||||||
$DIRECTORY = explode(DIRECTORY_SEPARATOR, $filePath);
|
$DIRECTORY = explode(DIRECTORY_SEPARATOR, $filePath);
|
||||||
array_pop($DIRECTORY);
|
array_pop($DIRECTORY);
|
||||||
|
|
||||||
$tree = $this->files;
|
$tree = null;
|
||||||
foreach ($DIRECTORY as $value) {
|
foreach ($DIRECTORY as $value) {
|
||||||
if (empty($value)) {
|
if (empty($value)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$tree = $tree->getChild($value);
|
if ($tree === null) {
|
||||||
|
$tree = $this->files->getChild($value);
|
||||||
$tree->addFile($className);
|
} else {
|
||||||
|
$tree = $tree->getChild($value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
$tree->addFile($className);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user