From 9cb6db5e26d81202d0047c0bf0e81f60f0c0d847 Mon Sep 17 00:00:00 2001 From: xl Date: Mon, 18 Nov 2024 11:32:40 +0800 Subject: [PATCH] eee --- Abstracts/HotReload.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Abstracts/HotReload.php b/Abstracts/HotReload.php index 4d97b61..f219294 100644 --- a/Abstracts/HotReload.php +++ b/Abstracts/HotReload.php @@ -3,6 +3,7 @@ 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; @@ -11,6 +12,9 @@ class HotReload extends AbstractProcess { + /** + * @var mixed + */ protected mixed $pipe; @@ -26,6 +30,9 @@ class HotReload extends AbstractProcess protected bool $enable_queue = false; + /** + * @var bool + */ protected bool $reloading = false; @@ -76,6 +83,8 @@ class HotReload extends AbstractProcess { $this->reloading = true; + \Kiri::getLogger()->info('reloading server, please waite.'); + di(ServerInterface::class)->reload(); $this->reloading = false;