This commit is contained in:
as2252258@163.com
2021-05-02 04:32:57 +08:00
parent 96cbb09b28
commit ed570b3e3d
+1 -2
View File
@@ -235,6 +235,7 @@ class Loader extends BaseObject
$path = '/' . trim($path, '/'); $path = '/' . trim($path, '/');
foreach ($this->_directory as $key => $_path) { foreach ($this->_directory as $key => $_path) {
$key = '/' . trim($key, '/'); $key = '/' . trim($key, '/');
var_export($key);
if (!str_starts_with($key, $path)) { if (!str_starts_with($key, $path)) {
continue; continue;
} }
@@ -304,8 +305,6 @@ class Loader extends BaseObject
return; return;
} }
$annotation = Snowflake::getAnnotation(); $annotation = Snowflake::getAnnotation();
foreach ($classes as $className) { foreach ($classes as $className) {
$annotations = $this->_classes[$className] ?? null; $annotations = $this->_classes[$className] ?? null;
if ($annotations === null) { if ($annotations === null) {