From 70a5a5ea59e2a0ff0114c8f7f8dfc68e6bbafb8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Wed, 23 Feb 2022 18:20:14 +0800 Subject: [PATCH] modify plugin name --- kiri-engine/FileListen/HotReload.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kiri-engine/FileListen/HotReload.php b/kiri-engine/FileListen/HotReload.php index ba2ad011..0e5e32b6 100644 --- a/kiri-engine/FileListen/HotReload.php +++ b/kiri-engine/FileListen/HotReload.php @@ -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();