diff --git a/core/Application.php b/core/Application.php index d5686c60..f7e29815 100644 --- a/core/Application.php +++ b/core/Application.php @@ -237,7 +237,9 @@ class Application extends BaseApplication fire(new OnBeforeCommandExecute()); if (!($class instanceof ServerCommand)) { scan_directory(directory('app'), 'App'); - } + } else if (!is_enable_file_modification_listening()) { + scan_directory(directory('app'), 'App'); + } $class->run($input, $output); $output->writeln('ok' . PHP_EOL); } diff --git a/http-server/ServerCommand.php b/http-server/ServerCommand.php index 6ea02ade..2c57a7d0 100644 --- a/http-server/ServerCommand.php +++ b/http-server/ServerCommand.php @@ -82,6 +82,9 @@ class ServerCommand extends Command } + /** + * @throws \Kiri\Exception\ConfigException + */ private function configure_set() { $enable_coroutine = Config::get('servers.settings.enable_coroutine', false);