From 8c0f98da2ac28003c2faca9523c92a81929fa7fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Sun, 16 Apr 2023 15:24:54 +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/ProcessManager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Abstracts/ProcessManager.php b/Abstracts/ProcessManager.php index e0d979b..1d6ec06 100644 --- a/Abstracts/ProcessManager.php +++ b/Abstracts/ProcessManager.php @@ -50,11 +50,11 @@ class ProcessManager extends Component * @param OnServerBeforeStart $beforeStart * @return void * @throws ContainerExceptionInterface - * @throws NotFoundExceptionInterface + * @throws NotFoundExceptionInterface|Exception */ public function OnServerBeforeStart(OnServerBeforeStart $beforeStart): void { - $server = $this->container->get(ServerInterface::class); + $server = Kiri::service()->get('server'); foreach ($this->_process as $custom) { if (Kiri\Di\Context::inCoroutine()) { Coroutine::create(function () use ($custom) {