public function onStart(Server $server)
    {
        \file_put_contents($this->serverSetting['pfile'], $server->master_pid . ',' . $server->manager_pid);

        ProcessHelper::setProcessTitle($this->serverSetting['pname'] . ' master process (' . $this->scriptFile . ')');

        $this->fireServerEvent(SwooleEvent::ON_START, [$server]);
    }
public function onStart(Server $server)
    {
        \file_put_contents($this->serverSetting['pfile'], $server->master_pid . ',' . $server->manager_pid);

        ProcessHelper::setProcessTitle($this->serverSetting['pname'] . ' master process (' . $this->scriptFile . ')');

        $this->fireServerEvent(SwooleEvent::ON_START, [$server]);
    }
public function onStart ( Server $ server ) { \ file_put_contents ( $ this -> serverSetting [ 'pfile' ] , $ server -> master_pid . ',' . $ server -> manager_pid ) ; ProcessHelper :: setProcessTitle ( $ this -> serverSetting [ 'pname' ] . ' master process (' . $ this -> scriptFile . ')' ) ; $ this -> fireServerEvent ( SwooleEvent :: ON_START , [ $ server ] ) ; }
onStart event callback

@param Server $server
@throws \InvalidArgumentException
onStart event callback