From 1549f02aeaacd2e360809b5b9cdda284d10412ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 22 Feb 2021 18:31:25 +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 --- Annotation/Annotation.php | 1 - System/Application.php | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) 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');