From bbae787d4be001c8b81dd14b2fa4449e08f72d07 Mon Sep 17 00:00:00 2001 From: xl Date: Mon, 18 Nov 2024 11:49:49 +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 5624cb6..1e7747e 100644 --- a/Abstracts/HotReload.php +++ b/Abstracts/HotReload.php @@ -3,10 +3,8 @@ namespace Kiri\Server\Abstracts; use Kiri\Server\ServerInterface; -use Psr\Log\LoggerInterface; use Swoole\Process; use Kiri\Server\Processes\AbstractProcess; -use function GuzzleHttp\Psr7\uri_for; class HotReload extends AbstractProcess { @@ -103,6 +101,7 @@ class HotReload extends AbstractProcess */ public function readFile(string $directory): void { + var_dump($directory); if (str_ends_with($directory, '.php') === true) { inotify_add_watch($this->pipe, $directory, IN_MODIFY | IN_MOVE | IN_CREATE | IN_DELETE); }