This commit is contained in:
2023-04-02 00:32:35 +08:00
parent d57c803a53
commit 664cc98934
2 changed files with 31 additions and 29 deletions
+2
View File
@@ -75,6 +75,8 @@ class AsyncServer implements ServerInterface
$this->addListener(instance(SConfig::class, [], $rpcService));
}
$this->processManager->batch(Config::get('processes', []));
$this->onSignal(Config::get('signal', []));
}
+2 -2
View File
@@ -44,7 +44,7 @@ class Server extends HttpService
/**
* @param State $state
* @param CoroutineServer $manager
* @param AsyncServer $manager
* @param ContainerInterface $container
* @param ProcessManager $processManager
* @param EventDispatch $dispatch
@@ -54,7 +54,7 @@ class Server extends HttpService
* @throws Exception
*/
public function __construct(public State $state,
public CoroutineServer $manager,
public AsyncServer $manager,
public ContainerInterface $container,
public ProcessManager $processManager,
public EventDispatch $dispatch,