From c260ac6df4e4c2c56f3f1e49baf19cef11669ddb Mon Sep 17 00:00:00 2001 From: Administrator Date: Sat, 27 Nov 2021 17:43:28 +0800 Subject: [PATCH] 1 --- ServerManager.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/ServerManager.php b/ServerManager.php index 1b20993..de8e33e 100644 --- a/ServerManager.php +++ b/ServerManager.php @@ -5,10 +5,12 @@ namespace Server; use Annotation\Inject; use Exception; use Kiri\Abstracts\Config; -use Kiri\Di\ContainerInterface; +use Psr\Container\ContainerInterface; use Kiri\Error\Logger; use Kiri\Exception\ConfigException; use Kiri\Kiri; +use Psr\Container\ContainerExceptionInterface; +use Psr\Container\NotFoundExceptionInterface; use ReflectionException; use Server\Abstracts\BaseProcess; use Server\Contract\OnCloseInterface; @@ -334,10 +336,12 @@ class ServerManager } - /** - * @param array $events - * @param Server|Port $server - */ + /** + * @param array $events + * @param Server|Port $server + * @throws ContainerExceptionInterface + * @throws NotFoundExceptionInterface + */ private function addServiceEvents(array $events, Server|Port $server) { foreach ($events as $name => $event) {