public function initialize(DAV\Server $server)
    {
        $this->server = $server;
        $this->server->on('method:GET', [$this, 'httpGetEarly'], 90);
        $this->server->on('method:GET', [$this, 'httpGet'], 200);
        $this->server->on('onHTMLActionsPanel', [$this, 'htmlActionsPanel'], 200);
        if ($this->enablePost) {
            $this->server->on('method:POST', [$this, 'httpPOST']);
        }
    }
public function initialize(DAV\Server $server)
    {
        $this->server = $server;
        $this->server->on('method:GET', [$this, 'httpGetEarly'], 90);
        $this->server->on('method:GET', [$this, 'httpGet'], 200);
        $this->server->on('onHTMLActionsPanel', [$this, 'htmlActionsPanel'], 200);
        if ($this->enablePost) {
            $this->server->on('method:POST', [$this, 'httpPOST']);
        }
    }
public function initialize ( DAV \ Server $ server ) { $ this -> server = $ server ; $ this -> server -> on ( 'method:GET' , [ $ this , 'httpGetEarly' ] , 90 ) ; $ this -> server -> on ( 'method:GET' , [ $ this , 'httpGet' ] , 200 ) ; $ this -> server -> on ( 'onHTMLActionsPanel' , [ $ this , 'htmlActionsPanel' ] , 200 ) ; if ( $ this -> enablePost ) { $ this -> server -> on ( 'method:POST' , [ $ this , 'httpPOST' ] ) ; } }
Initializes the plugin and subscribes to events.

@param DAV\Server $server
Initializes the plugin and subscribes to events .