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,