This commit is contained in:
2021-11-04 16:30:48 +08:00
parent 56c8befe83
commit 61728b4a6f
+3 -1
View File
@@ -229,7 +229,9 @@ class Application extends BaseApplication
private function enableFileChange(Command $class, $input, $output): void
{
fire(new OnBeforeCommandExecute());
scan_directory(directory('app'), 'App');
if (!($class instanceof FileChangeCustomProcess)) {
scan_directory(directory('app'), 'App');
}
if ($class instanceof ServerCommand) {
$this->getRouter()->read_files();
}