This commit is contained in:
2020-09-02 17:33:48 +08:00
parent f64942424b
commit 5fa97ded93
10 changed files with 147 additions and 68 deletions
+4 -3
View File
@@ -49,14 +49,15 @@ trait Server
*/
public function onHandlerListener()
{
$this->on('start', $this->createHandler('start'));
$this->on('shutdown', $this->createHandler('shutdown'));
$this->on('workerStop', $this->createHandler('workerStop'));
$this->on('workerExit', $this->createHandler('workerExit'));
$this->on('workerStart', $this->createHandler('workerStart'));
$this->on('workerError', $this->createHandler('workerError'));
$this->on('managerStop', $this->createHandler('managerStop'));
$this->on('managerStart', $this->createHandler('managerStart'));
$this->on('managerStop', $this->createHandler('managerStop'));
$this->on('pipeMessage', $this->createHandler('pipeMessage'));
$this->on('shutdown', $this->createHandler('shutdown'));
$this->on('start', $this->createHandler('start'));
$this->addTask();
}