eee
This commit is contained in:
@@ -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/');
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user