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;