From 557bda6115d0e683ed6610c507697299fc7020ea Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Mon, 20 Sep 2021 01:20:07 +0800 Subject: [PATCH] 111 --- core/Application.php | 4 +++- http-server/ServerCommand.php | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) 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);