From ed570b3e3db1c42373d16845917cf492b7464ccf Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Sun, 2 May 2021 04:32:57 +0800 Subject: [PATCH] modify --- Annotation/Loader.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Annotation/Loader.php b/Annotation/Loader.php index 04ad5b44..4a813c4d 100644 --- a/Annotation/Loader.php +++ b/Annotation/Loader.php @@ -235,6 +235,7 @@ class Loader extends BaseObject $path = '/' . trim($path, '/'); foreach ($this->_directory as $key => $_path) { $key = '/' . trim($key, '/'); + var_export($key); if (!str_starts_with($key, $path)) { continue; } @@ -304,8 +305,6 @@ class Loader extends BaseObject return; } $annotation = Snowflake::getAnnotation(); - - foreach ($classes as $className) { $annotations = $this->_classes[$className] ?? null; if ($annotations === null) {