This commit is contained in:
2021-03-23 10:31:41 +08:00
parent 14bae86b66
commit 66a5627486
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -364,7 +364,7 @@ class Server extends HttpService
* @throws NotFindClassException * @throws NotFindClassException
* @throws ReflectionException * @throws ReflectionException
*/ */
private function startRpcService() private function startRpcService(): Packet|Websocket|Receive|Http|null
{ {
$rpcService = Config::get('rpc.service', false, []); $rpcService = Config::get('rpc.service', false, []);
if (is_array($rpcService) && !empty($rpcService)) { if (is_array($rpcService) && !empty($rpcService)) {
+1
View File
@@ -128,6 +128,7 @@ class Container extends BaseObject
$dependencies[$index] = $param; $dependencies[$index] = $param;
} }
var_dump($reflect->getName());
if (!$reflect->isInstantiable()) { if (!$reflect->isInstantiable()) {
throw new NotFindClassException($reflect->getName()); throw new NotFindClassException($reflect->getName());
} }