modify plugin name

This commit is contained in:
2022-02-25 17:21:00 +08:00
parent 70271e3db4
commit ecddacb321
2 changed files with 4 additions and 2 deletions
+3 -2
View File
@@ -238,7 +238,9 @@ class Application extends BaseApplication
$this->getContainer()->setBindings(OutputInterface::class, $output);
scan_directory(MODEL_PATH, 'app\Model');
if (!($class instanceof Kiri\Server\ServerCommand)) {
scan_directory(MODEL_PATH, 'app\Model');
}
$class->run($input, $output);
fire(new OnAfterCommandExecute());
@@ -246,7 +248,6 @@ class Application extends BaseApplication
}
/**
* @param $className
* @param null $abstracts
+1
View File
@@ -214,6 +214,7 @@ class HotReload extends Command
$this->stopServer();
$this->process = new Process(function (Process $process) {
$config = Config::get('scanner', []);
scan_directory(MODEL_PATH, 'app\Model');
if (is_array($config)) foreach ($config as $key => $value) {
scan_directory($value, $key);
}