diff options
author | Julien Veyssier <julien-nc@posteo.net> | 2022-12-06 14:03:36 +0100 |
---|---|---|
committer | Julien Veyssier <julien-nc@posteo.net> | 2022-12-12 13:56:40 +0100 |
commit | da9ffe4efc4512661f697c4c62cd88d59cd7260e (patch) | |
tree | 29f357ef3bfafbd300dbb6b5cc877e446a826620 /apps | |
parent | 96128192b5e4b2371ad5d6a854b089859ca6f3f5 (diff) | |
download | nextcloud-server-da9ffe4efc4512661f697c4c62cd88d59cd7260e.tar.gz nextcloud-server-da9ffe4efc4512661f697c4c62cd88d59cd7260e.zip |
allow additional Sabre plugins in publicwebdav.php
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dav/appinfo/v1/publicwebdav.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/dav/appinfo/v1/publicwebdav.php b/apps/dav/appinfo/v1/publicwebdav.php index 409fbbcf4a7..5acea04b1ea 100644 --- a/apps/dav/appinfo/v1/publicwebdav.php +++ b/apps/dav/appinfo/v1/publicwebdav.php @@ -111,6 +111,9 @@ $server = $serverFactory->createServer($baseuri, $requestUri, $authPlugin, funct $server->addPlugin($linkCheckPlugin); $server->addPlugin($filesDropPlugin); +// allow setup of additional plugins +$event = new \OCP\SabrePluginEvent($server); +\OC::$server->getEventDispatcher()->dispatch('OCA\DAV\Connector\Sabre::addPublicPlugin', $event); // And off we go! $server->exec(); |