This commit is contained in:
2021-11-19 10:59:32 +08:00
parent 35dd2803fc
commit fc6baa83a7
+1 -2
View File
@@ -71,8 +71,7 @@ class HotReload extends Command
// TODO: Implement onHandler() method. // TODO: Implement onHandler() method.
set_error_handler([$this, 'onErrorHandler']); set_error_handler([$this, 'onErrorHandler']);
$this->dirs = Config::get('inotify', [APP_PATH . 'app']); $this->dirs = Config::get('inotify', [APP_PATH . 'app']);
swoole_async_set(['enable_coroutine' => false]);
Runtime::enableCoroutine(false);
if (!extension_loaded('inotify')) { if (!extension_loaded('inotify')) {
$this->driver = Kiri::getDi()->get(Scaner::class, [$this->dirs, $this]); $this->driver = Kiri::getDi()->get(Scaner::class, [$this->dirs, $this]);
} else { } else {