public function addPlugin(ServerPlugin $plugin)
    {
        $this->plugins[$plugin->getPluginName()] = $plugin;
        $plugin->initialize($this);
    }
public function addPlugin(ServerPlugin $plugin)
    {
        $this->plugins[$plugin->getPluginName()] = $plugin;
        $plugin->initialize($this);
    }
public function addPlugin ( ServerPlugin $ plugin ) { $ this -> plugins [ $ plugin -> getPluginName ( ) ] = $ plugin ; $ plugin -> initialize ( $ this ) ; }
Adds a plugin to the server.

For more information, console the documentation of Sabre\DAV\ServerPlugin

@param ServerPlugin $plugin
Adds a plugin to the server .