From 2009ba0055796a6edc43cf97c7a33c70ac7aacdd Mon Sep 17 00:00:00 2001 From: whwyy Date: Mon, 18 Dec 2023 03:18:26 +0800 Subject: [PATCH] eee --- HotReload.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/HotReload.php b/HotReload.php index bdd5f3a..2f2425d 100644 --- a/HotReload.php +++ b/HotReload.php @@ -29,6 +29,9 @@ class HotReload extends BaseProcess private array $dirs = [APP_PATH . 'app', APP_PATH . 'routes']; + private bool $forceFile = false; + + protected mixed $inotify = null; @@ -90,7 +93,7 @@ class HotReload extends BaseProcess public function process(?Process $process): void { // TODO: Implement process() method. - if (extension_loaded('inotify')) { + if (!$this->forceFile && extension_loaded('inotify')) { $this->onInotifyReload(); } else { $this->onCrontabReload();