modify plugin name

This commit is contained in:
2022-02-14 14:30:48 +08:00
parent 244ed0fded
commit 826dcb58e5
+9 -9
View File
@@ -229,15 +229,15 @@ class Application extends BaseApplication
private function enableFileChange(Command $class, $input, $output): void private function enableFileChange(Command $class, $input, $output): void
{ {
fire(new OnBeforeCommandExecute()); fire(new OnBeforeCommandExecute());
if (!($class instanceof HotReload)) { // if (!($class instanceof HotReload)) {
$config = Config::get('scanner', []); // $config = Config::get('scanner', []);
if (!empty($config)) { // if (!empty($config)) {
foreach ($config as $key => $value) { // foreach ($config as $key => $value) {
scan_directory($value, $key); // scan_directory($value, $key);
} // }
} // }
scan_directory(MODEL_PATH, 'app\Model'); // scan_directory(MODEL_PATH, 'app\Model');
} // }
$this->getContainer()->setBindings(OutputInterface::class, $output); $this->getContainer()->setBindings(OutputInterface::class, $output);