From 826dcb58e5d72fbef35933a4d41b23954070a484 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Mon, 14 Feb 2022 14:30:48 +0800 Subject: [PATCH] modify plugin name --- kiri-engine/Application.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/kiri-engine/Application.php b/kiri-engine/Application.php index a6a8ff91..1574a8ed 100644 --- a/kiri-engine/Application.php +++ b/kiri-engine/Application.php @@ -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);