public function initialize(Server $server)
    {
        $this->server = $server;
        $server->on('beforeMethod:*', [$this, 'beforeMethod']);
        $server->on('beforeCreateFile', [$this, 'beforeCreateFile']);
    }
public function initialize(Server $server)
    {
        $this->server = $server;
        $server->on('beforeMethod:*', [$this, 'beforeMethod']);
        $server->on('beforeCreateFile', [$this, 'beforeCreateFile']);
    }
public function initialize ( Server $ server ) { $ this -> server = $ server ; $ server -> on ( 'beforeMethod:*' , [ $ this , 'beforeMethod' ] ) ; $ server -> on ( 'beforeCreateFile' , [ $ this , 'beforeCreateFile' ] ) ; }
Initialize the plugin.

This is called automatically be the Server class after this plugin is
added with Sabre\DAV\Server::addPlugin()

@param Server $server
Initialize the plugin .