This commit is contained in:
2023-12-18 03:18:26 +08:00
parent 2603463052
commit 2009ba0055
+4 -1
View File
@@ -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();