From bae719f0912bff18181b5beefb750f5cc3fd5c18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Sun, 2 Apr 2023 23:32:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CoroutineServer.php | 3 +++ Server.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CoroutineServer.php b/CoroutineServer.php index 56a1b50..ab7ccc6 100644 --- a/CoroutineServer.php +++ b/CoroutineServer.php @@ -78,6 +78,9 @@ class CoroutineServer implements ServerInterface if (!empty($rpcService)) { $this->addListener(instance(SConfig::class, [], $rpcService)); } + + $this->container->setBindings(ServerInterface::class, $this); + // $this->processManager->batch(Config::get('processes', [])); } diff --git a/Server.php b/Server.php index a5fd186..b53b60c 100644 --- a/Server.php +++ b/Server.php @@ -54,7 +54,7 @@ class Server extends HttpService * @throws Exception */ public function __construct(public State $state, - public AsyncServer $manager, + public CoroutineServer $manager, public ContainerInterface $container, public ProcessManager $processManager, public EventDispatch $dispatch,