diff --git a/Annotation/Annotation.php b/Annotation/Annotation.php index b663c37d..caa3ff54 100644 --- a/Annotation/Annotation.php +++ b/Annotation/Annotation.php @@ -61,7 +61,6 @@ class Annotation extends Component */ public function readControllers(string $path, string $namespace, string $alias = 'root'): static { - $this->debug('scan dir ' . $path . ' ing...'); return $this->scanDir(glob($path . '*'), $namespace, $alias); } diff --git a/System/Application.php b/System/Application.php index 6aadcb7a..ec282348 100644 --- a/System/Application.php +++ b/System/Application.php @@ -133,6 +133,8 @@ class Application extends BaseApplication */ public function scan_system_annotation() { + $this->debug('scan system files...'); + $annotation = Snowflake::app()->getAttributes(); $annotation->readControllers(__DIR__ . '/../Console/', 'Console', 'system'); $annotation->readControllers(__DIR__ . '/../Database/', 'Database', 'system');