This commit is contained in:
2023-04-02 23:32:55 +08:00
parent 33920ece68
commit bae719f091
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -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', []));
}
+1 -1
View File
@@ -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,