From 6fa51c2fe3f901b6df08618798ad90dbd98825de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 19 Aug 2021 15:47:12 +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 --- Server/ServerManager.php | 1 - System/Application.php | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Server/ServerManager.php b/Server/ServerManager.php index 36255085..beb836e6 100644 --- a/Server/ServerManager.php +++ b/Server/ServerManager.php @@ -57,7 +57,6 @@ class ServerManager * @param int $port * @param int $mode * @param array $settings - * @throws NotFindClassException * @throws ReflectionException * @throws ConfigException * @throws Exception diff --git a/System/Application.php b/System/Application.php index ce53cfd1..884a282e 100644 --- a/System/Application.php +++ b/System/Application.php @@ -168,6 +168,8 @@ class Application extends BaseApplication public function execute(Input $argv): void { try { + $this->register(Runtime::class); + $manager = Kiri::app()->get('console'); $class = $manager->setParameters($argv)->search(); @@ -189,7 +191,6 @@ class Application extends BaseApplication */ private function enableFileChange($class): void { - $this->register(Runtime::class); if (env('enableFileChange', 'off') == 'off' || !($class instanceof Server)) { scan_directory(directory('app'), 'App'); }