From 66a5627486853ac490a384fbdcac4c44371b94b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 23 Mar 2021 10:31:41 +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 --- HttpServer/Server.php | 2 +- System/Di/Container.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/HttpServer/Server.php b/HttpServer/Server.php index 6a310c7b..e5ce946f 100644 --- a/HttpServer/Server.php +++ b/HttpServer/Server.php @@ -364,7 +364,7 @@ class Server extends HttpService * @throws NotFindClassException * @throws ReflectionException */ - private function startRpcService() + private function startRpcService(): Packet|Websocket|Receive|Http|null { $rpcService = Config::get('rpc.service', false, []); if (is_array($rpcService) && !empty($rpcService)) { diff --git a/System/Di/Container.php b/System/Di/Container.php index 0bb9bf44..fc3cce4d 100644 --- a/System/Di/Container.php +++ b/System/Di/Container.php @@ -128,6 +128,7 @@ class Container extends BaseObject $dependencies[$index] = $param; } + var_dump($reflect->getName()); if (!$reflect->isInstantiable()) { throw new NotFindClassException($reflect->getName()); }