This commit is contained in:
2025-12-31 01:50:09 +08:00
parent 79d4f47a67
commit 6a27fa3b74
+7 -7
View File
@@ -70,13 +70,13 @@ class Application extends BaseApplication
*/
public function beforeCommandExecute(OnBeforeCommandExecute $beforeCommandExecute): void
{
if (!($beforeCommandExecute->command instanceof ServerCommand)) {
$scanner = $this->container->get(Scanner::class);
$scanner->scan(APP_PATH . 'app/');
} else if (config('site.reload.hot', false) === false) {
$scanner = $this->container->get(Scanner::class);
$scanner->scan(APP_PATH . 'app/');
}
if ($beforeCommandExecute->command instanceof ServerCommand) {
if (config('servers.reload.hot', false) === false) {
return;
}
}
$scanner = $this->container->get(Scanner::class);
$scanner->scan(APP_PATH . 'app/');
}