up. 添加gateway event类

This commit is contained in:
u2nyakim 2025-08-29 17:54:38 +08:00
parent 93f6c08e2a
commit 73ae0cf33e

View File

@ -35,15 +35,25 @@ class SysGateway extends Command
$argv[] = '-g';
}
/*
* 载入注册中心
*/
$this->startRegister();
$register = $this->startRegister();
$gateway = $this->startGateway();
/*
* 载入网关中心
*/
$this->startGateway();
/*
* 业务处理器
*/
$worker = new BusinessWorker();
$worker->name = 'ChatBusinessWorker';
$worker->count = 4;
$worker->registerAddress = '127.0.0.1:1236';
$worker->eventHandler = AdminGatewayEvents::class;
// 运行所有服务
Worker::runAll();
}