also allow to register additional plugins if the old endpoint is used
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
parent
8e1d33369b
commit
38a60e44db
|
@ -67,5 +67,10 @@ $server = $serverFactory->createServer($baseuri, $requestUri, $authPlugin, funct
|
|||
return \OC\Files\Filesystem::getView();
|
||||
});
|
||||
|
||||
$dispatcher = \OC::$server->getEventDispatcher();
|
||||
// allow setup of additional plugins
|
||||
$event = new \OCP\SabrePluginEvent($server);
|
||||
$dispatcher->dispatch('OCA\DAV\Connector\Sabre::addPlugin', $event);
|
||||
|
||||
// And off we go!
|
||||
$server->exec();
|
||||
|
|
Loading…
Reference in New Issue