modify plugin name
This commit is contained in:
@@ -238,9 +238,6 @@ 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)) {
|
|
||||||
$this->fileListener();
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->getContainer()->setBindings(OutputInterface::class, $output);
|
$this->getContainer()->setBindings(OutputInterface::class, $output);
|
||||||
|
|
||||||
@@ -250,20 +247,6 @@ class Application extends BaseApplication
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @return void
|
|
||||||
* @throws Exception
|
|
||||||
* @throws ReflectionException
|
|
||||||
*/
|
|
||||||
protected function fileListener(): void
|
|
||||||
{
|
|
||||||
$config = Config::get('scanner', []);
|
|
||||||
if (is_array($config)) foreach ($config as $key => $value) {
|
|
||||||
scan_directory($value, $key);
|
|
||||||
}
|
|
||||||
scan_directory(MODEL_PATH, 'app\Model');
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $className
|
* @param $className
|
||||||
|
|||||||
@@ -211,6 +211,11 @@ class HotReload extends Command
|
|||||||
|
|
||||||
$this->stopServer();
|
$this->stopServer();
|
||||||
$this->process = new Process(function (Process $process) {
|
$this->process = new Process(function (Process $process) {
|
||||||
|
scan_directory(MODEL_PATH, 'app\Model');
|
||||||
|
$config = Config::get('scanner', []);
|
||||||
|
if (is_array($config)) foreach ($config as $key => $value) {
|
||||||
|
scan_directory($value, $key);
|
||||||
|
}
|
||||||
Kiri::app()->getServer()->start();
|
Kiri::app()->getServer()->start();
|
||||||
});
|
});
|
||||||
$this->process->start();
|
$this->process->start();
|
||||||
|
|||||||
Reference in New Issue
Block a user