From 1a78828c4e197952575360c578b03e9f5fa8dbd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 23 Mar 2021 18:50:43 +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/Application.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/System/Application.php b/System/Application.php index 1aa1649e..6b8484d7 100644 --- a/System/Application.php +++ b/System/Application.php @@ -109,10 +109,7 @@ class Application extends BaseApplication { try { fire(Event::SERVER_BEFORE_START); - if (env('debug') == 'false') { - $annotation = Snowflake::app()->getAttributes(); - $annotation->read(directory('app'), 'App'); - } + $manager = Snowflake::app()->get('console'); $manager->setParameters($argv); $class = $manager->search();