modify plugin name
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user