modify
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user