eee
This commit is contained in:
@@ -70,13 +70,13 @@ class Application extends BaseApplication
|
|||||||
*/
|
*/
|
||||||
public function beforeCommandExecute(OnBeforeCommandExecute $beforeCommandExecute): void
|
public function beforeCommandExecute(OnBeforeCommandExecute $beforeCommandExecute): void
|
||||||
{
|
{
|
||||||
if (!($beforeCommandExecute->command instanceof ServerCommand)) {
|
if ($beforeCommandExecute->command instanceof ServerCommand) {
|
||||||
$scanner = $this->container->get(Scanner::class);
|
if (config('servers.reload.hot', false) === false) {
|
||||||
$scanner->scan(APP_PATH . 'app/');
|
return;
|
||||||
} else if (config('site.reload.hot', false) === false) {
|
}
|
||||||
$scanner = $this->container->get(Scanner::class);
|
}
|
||||||
$scanner->scan(APP_PATH . 'app/');
|
$scanner = $this->container->get(Scanner::class);
|
||||||
}
|
$scanner->scan(APP_PATH . 'app/');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user