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); }