From 168ceac6a88821f008ab9fc284029f1dc0a8178b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Mon, 29 Nov 2021 10:58:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/RpcJsonp.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/RpcJsonp.php b/src/RpcJsonp.php index 3db9ff9..4a2ced9 100644 --- a/src/RpcJsonp.php +++ b/src/RpcJsonp.php @@ -8,10 +8,12 @@ use Http\Handler\Router; use Kiri\Abstracts\Component; use Kiri\Abstracts\Config; use Kiri\Consul\Agent; +use Psr\Container\ContainerExceptionInterface; use Psr\Container\ContainerInterface; use Kiri\Events\EventProvider; use Kiri\Exception\ConfigException; use Kiri\Kiri; +use Psr\Container\NotFoundExceptionInterface; use Server\Events\OnBeforeShutdown; use Server\Events\OnStart; use Server\Contract\OnCloseInterface; @@ -58,6 +60,8 @@ class RpcJsonp extends Component implements OnConnectInterface, OnReceiveInterfa /** * @param OnBeforeShutdown $beforeShutdown + * @throws ContainerExceptionInterface + * @throws NotFoundExceptionInterface */ public function onBeforeShutdown(OnBeforeShutdown $beforeShutdown) { @@ -70,7 +74,10 @@ class RpcJsonp extends Component implements OnConnectInterface, OnReceiveInterfa /** + * @param OnStart $server * @throws ConfigException + * @throws ContainerExceptionInterface + * @throws NotFoundExceptionInterface */ public function register(OnStart $server) { @@ -187,6 +194,7 @@ class RpcJsonp extends Component implements OnConnectInterface, OnReceiveInterfa * @param array $handler * @param $data * @return array + * @throws \ReflectionException */ private function handler(array $handler, $data): array {