From 5bac6a843d945a11665abee41beb450026b79e70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Thu, 10 Feb 2022 11:46:02 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E6=94=B9=E5=90=8D"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit fdf58326 --- Connection.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Connection.php b/Connection.php index 8134577..1ab0168 100644 --- a/Connection.php +++ b/Connection.php @@ -23,6 +23,8 @@ use Kiri\Abstracts\Config; use Kiri\Exception\NotFindClassException; use Kiri\Server\Events\OnWorkerExit; use Kiri\Server\Events\OnWorkerStop; +use Psr\Container\ContainerExceptionInterface; +use Psr\Container\NotFoundExceptionInterface; use ReflectionException; /** @@ -70,8 +72,9 @@ class Connection extends Component /** - * execute by __construct - * @throws Exception + * @return void + * @throws ContainerExceptionInterface + * @throws NotFoundExceptionInterface */ public function init() {