modify
This commit is contained in:
@@ -67,7 +67,7 @@ class Server extends HttpService
|
|||||||
*/
|
*/
|
||||||
public function start(): string
|
public function start(): string
|
||||||
{
|
{
|
||||||
$this->manager->initBaseServer(Config::get('servers', [], true));
|
$this->manager->initBaseServer(Config::get('server', [], true));
|
||||||
|
|
||||||
$rpcService = Config::get('rpc', []);
|
$rpcService = Config::get('rpc', []);
|
||||||
if (!empty($rpcService)) {
|
if (!empty($rpcService)) {
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ class ServerManager extends Abstracts\Server
|
|||||||
public function initBaseServer($configs): void
|
public function initBaseServer($configs): void
|
||||||
{
|
{
|
||||||
$context = ServerManager::getContext();
|
$context = ServerManager::getContext();
|
||||||
foreach ($this->sortService($configs['server']['ports']) as $config) {
|
foreach ($this->sortService($configs['ports']) as $config) {
|
||||||
$this->startListenerHandler($context, $config);
|
$this->startListenerHandler($context, $config);
|
||||||
}
|
}
|
||||||
$this->addServerEventCallback($this->getSystemEvents($configs));
|
$this->addServerEventCallback($this->getSystemEvents($configs));
|
||||||
|
|||||||
Reference in New Issue
Block a user