mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 02:31:33 -04:00
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
1 changed files with 5 additions and 0 deletions
|
|
@ -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 a new issue