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'); }