modify plugin name

This commit is contained in:
2022-02-23 18:20:14 +08:00
parent 689f1cc32a
commit 70a5a5ea59
+4 -2
View File
@@ -66,10 +66,12 @@ class HotReload extends Command
{
set_error_handler([$this, 'errorHandler']);
$this->dirs = Config::get('inotify', [APP_PATH . 'app']);
$container = Kiri::getDi();
if (!extension_loaded('inotify')) {
$this->driver = make(Scaner::class, [$this->dirs, $this, $this->logger]);
$this->driver = $container->make(Scaner::class, [$this->dirs, $this, $this->logger]);
} else {
$this->driver = make(Inotify::class, [$this->dirs, $this, $this->logger]);
$this->driver = $container->make(Inotify::class, [$this->dirs, $this, $this->logger]);
}
$this->clearOtherService();
$this->setProcessName();