This commit is contained in:
xl
2023-07-06 17:21:32 +08:00
parent 460818a50a
commit d093dd7f57
+7 -2
View File
@@ -118,8 +118,13 @@ class Application extends BaseApplication
$console = $container->get(ConsoleApplication::class);
$command = $console->find($input->getFirstArgument());
$scanner = $container->get(Scanner::class);
$scanner->read(APP_PATH . 'app/');
if (!($command instanceof Kiri\Server\ServerCommand)) {
$scanner = $container->get(Scanner::class);
$scanner->read(APP_PATH . 'app/');
} else if (\config('reload.hot', false) === false) {
$scanner = $container->get(Scanner::class);
$scanner->read(APP_PATH . 'app/');
}
fire(new OnBeforeCommandExecute());