This commit is contained in:
2021-04-19 11:57:31 +08:00
parent 7c0a23c3aa
commit 49b78255d6
+3 -3
View File
@@ -230,11 +230,11 @@ class Loader extends BaseObject
if (!isset($this->_directory[$path])) {
return;
}
foreach ($this->_directory[$path] as $key => $path) {
if (!str_starts_with($key, $path)) {
foreach ($this->_directory[$path] as $key => $_path) {
if (!str_starts_with($key, $_path)) {
continue;
}
$this->execute($this->_directory[$path]);
$this->execute($this->_directory[$_path]);
}
} catch (Throwable $exception) {
$this->addError($exception, 'throwable');