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
{
fire(new OnBeforeCommandExecute());
if (!($class instanceof HotReload)) {
$config = Config::get('scanner', []);
if (!empty($config)) {
foreach ($config as $key => $value) {
scan_directory($value, $key);
}
}
scan_directory(MODEL_PATH, 'app\Model');
}
// if (!($class instanceof HotReload)) {
// $config = Config::get('scanner', []);
// if (!empty($config)) {
// foreach ($config as $key => $value) {
// scan_directory($value, $key);
// }
// }
// scan_directory(MODEL_PATH, 'app\Model');
// }
$this->getContainer()->setBindings(OutputInterface::class, $output);