This commit is contained in:
2021-10-28 17:13:55 +08:00
parent 9269a1a23e
commit 22b99ebc2d
+1
View File
@@ -236,6 +236,7 @@ class Application extends BaseApplication
fire(new OnBeforeCommandExecute());
if (!($class instanceof ServerCommand)) {
scan_directory(directory('app'), 'App');
scan_directory(directory('rpc'), 'Rpc');
} else if (!is_enable_file_modification_listening()) {
$this->getRouter()->read_files();
scan_directory(directory('app'), 'App');