up. 添加gateway event类
This commit is contained in:
parent
93f6c08e2a
commit
73ae0cf33e
@ -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();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user