This commit is contained in:
2021-03-29 18:02:47 +08:00
parent 70cc485e6b
commit 558688c2aa
+15
View File
@@ -136,6 +136,21 @@ class Server extends HttpService
Coroutine::set(['enable_deadlock_check' => false]);
return $this->execute($baseServer);
}
/**
* @param $baseServer
* @return mixed
* @throws ComponentException
* @throws NotFindClassException
* @throws ReflectionException
*/
private function execute($baseServer): mixed
{
$app = Snowflake::app();
$app->set('base-server', $baseServer);
return $baseServer->start();
}