diff --git a/Abstracts/HotReload.php b/Abstracts/HotReload.php index 77e617d..98ef1f7 100644 --- a/Abstracts/HotReload.php +++ b/Abstracts/HotReload.php @@ -27,13 +27,6 @@ class HotReload extends AbstractProcess public StdoutLogger|LoggerInterface $logger; - /** - * @var ServerInterface - */ - #[Container(ServerInterface::class)] - public ServerInterface $server; - - /** * @var bool */ @@ -115,7 +108,7 @@ class HotReload extends AbstractProcess $this->clear(); - $this->server->reload(); + di(ServerInterface::class)->reload(); $this->addListen();