From dcf67c3848cbe9093b12ac7c2c9c9ac11e09bb56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 31 Aug 2020 23:23:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- system/Annotation/Annotation.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/system/Annotation/Annotation.php b/system/Annotation/Annotation.php index 8d8504e1..f03d8407 100644 --- a/system/Annotation/Annotation.php +++ b/system/Annotation/Annotation.php @@ -65,10 +65,7 @@ class Annotation extends BaseAnnotation */ public function registration_notes($path, $namespace, $class) { - $path = rtrim($path, '/'); - foreach (glob($path . '/*') as $item) { - $this->scanning($item, $namespace, $class); - } + $this->scanning(rtrim($path, '/'), $namespace, $class); }