Revert "改名"

This reverts commit fdf58326
This commit is contained in:
2022-01-12 14:52:01 +08:00
parent 375f396467
commit 667d311d73
+6 -1
View File
@@ -230,7 +230,12 @@ class Application extends BaseApplication
{ {
fire(new OnBeforeCommandExecute()); fire(new OnBeforeCommandExecute());
if (!($class instanceof HotReload)) { if (!($class instanceof HotReload)) {
scan_directory(COMPONENT_PATH, 'app\Components'); $config = Config::get('scanner', []);
if (!empty($config)) {
foreach ($config as $key => $value) {
scan_directory($value, $key);
}
}
scan_directory(MODEL_PATH, 'app\Model'); scan_directory(MODEL_PATH, 'app\Model');
} }