From 49fae2129fe225d39734ccf2473b6653e55b0e1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Tue, 7 Feb 2023 16:55:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Abstracts/AsyncServer.php | 2 +- Server.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Abstracts/AsyncServer.php b/Abstracts/AsyncServer.php index 1f30b63..be25eda 100644 --- a/Abstracts/AsyncServer.php +++ b/Abstracts/AsyncServer.php @@ -90,7 +90,7 @@ class AsyncServer implements ServerInterface /** * @return bool * @throws ContainerExceptionInterface - * @throws NotFoundExceptionInterface + * @throws NotFoundExceptionInterface|ReflectionException */ public function shutdown(): bool { diff --git a/Server.php b/Server.php index 39bbe51..3a40e98 100644 --- a/Server.php +++ b/Server.php @@ -108,7 +108,6 @@ class Server extends HttpService $this->onHotReload(); $this->manager->initCoreServers(Config::get('server', [], true), $this->daemon); $this->manager->onSignal(Config::get('signal', [])); - $this->dispatch->dispatch(new OnServerBeforeStart()); $this->manager->start(); }