From e3d9e7d5ec8b4f3c18d5a5704d5210a3d660bdf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Fri, 17 Jun 2022 10:43:28 +0800 Subject: [PATCH] modify plugin name --- Server.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Server.php b/Server.php index dba57d8..78f0ae7 100644 --- a/Server.php +++ b/Server.php @@ -122,9 +122,7 @@ class Server extends HttpService $rpcService = Config::get('rpc', []); if (!empty($rpcService)) { - /** @var \Kiri\Server\Config $create */ - $create = $this->container->create(\Kiri\Server\Config::class, [], $rpcService); - $this->manager->addListener($create); + $this->manager->addListener($this->container->create(\Kiri\Server\Config::class, [], $rpcService)); } pcntl_signal(SIGINT, [$this, 'onSigint']);