src/Server.php
function onServerStart(Worker $worker) {
        self::$name = $this->_name;
        self::$memcached = new \Memcached();
        if (is_callable($this->_on_start))
            call_user_func($this->_on_start, $worker);
        self::$_status = self::_STATUS_STARTED;
    }
function onServerStart(Worker $worker) {
        self::$name = $this->_name;
        self::$memcached = new \Memcached();
        if (is_callable($this->_on_start))
            call_user_func($this->_on_start, $worker);
        self::$_status = self::_STATUS_STARTED;
    }
function onServerStart ( Worker $ worker ) { self :: $ name = $ this -> _name ; self :: $ memcached = new \ Memcached ( ) ; if ( is_callable ( $ this -> _on_start ) ) call_user_func ( $ this -> _on_start , $ worker ) ; self :: $ _status = self :: _STATUS_STARTED ; }
服务启动回调

@param Worker $worker
服务启动回调