From aab596d14dc2c3356e48c0e017367dedf09948e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 17 Aug 2021 18:19:52 +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 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/System/Application.php b/System/Application.php index 8a90f483..d6487bbd 100644 --- a/System/Application.php +++ b/System/Application.php @@ -153,9 +153,7 @@ class Application extends BaseApplication $manager = Kiri::app()->get('console'); $manager->register(Runtime::class); $class = $manager->setParameters($argv)->search(); -// if (!($class instanceof Command)) { - scan_directory(directory('app'), 'App'); -// } + $data = $this->getBuilder($manager->exec($class)); } catch (\Throwable $exception) { $data = $this->getBuilder(logger()->exception($exception));