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:
Bjoern Schiessle 2017-08-30 12:32:52 +02:00
parent 8e1d33369b
commit 38a60e44db
No known key found for this signature in database
GPG Key ID: 2378A753E2BF04F6
1 changed files with 5 additions and 0 deletions

View File

@ -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();