diff --git a/core/Application.php b/core/Application.php index f7e29815..cc5b3637 100644 --- a/core/Application.php +++ b/core/Application.php @@ -238,6 +238,7 @@ class Application extends BaseApplication if (!($class instanceof ServerCommand)) { scan_directory(directory('app'), 'App'); } else if (!is_enable_file_modification_listening()) { + $this->getRouter()->read_files(); scan_directory(directory('app'), 'App'); } $class->run($input, $output);