From 787f035d627ebfa4b1eaef77acfea7faeef0344c Mon Sep 17 00:00:00 2001 From: xl Date: Mon, 18 Nov 2024 11:45:31 +0800 Subject: [PATCH] eee --- Abstracts/HotReload.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Abstracts/HotReload.php b/Abstracts/HotReload.php index 9f2df96..b18d2df 100644 --- a/Abstracts/HotReload.php +++ b/Abstracts/HotReload.php @@ -99,7 +99,6 @@ class HotReload extends AbstractProcess */ public function readFile(string $directory): void { - var_dump($directory, str_ends_with($directory, '.php')); if (str_ends_with($directory, '.php') === true) { inotify_add_watch($this->pipe, $directory, IN_MODIFY | IN_MOVE | IN_CREATE | IN_DELETE); } @@ -131,7 +130,7 @@ class HotReload extends AbstractProcess continue; } if (is_dir($data)) { - $this->readFile($data . DIRECTORY_SEPARATOR . '*'); + $this->readDirectory($data . DIRECTORY_SEPARATOR . '*'); } else { $this->readFile($data); }