diff options
author | Julien Veyssier <julien-nc@posteo.net> | 2022-12-13 11:20:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-13 11:20:17 +0100 |
commit | 104a1097b577291c1814a33f23ef2cb8b47b62c4 (patch) | |
tree | 34105a45d44416b04c688e95f4721645aa8261ba /apps | |
parent | 32ef1f59321397bce7577e30394abb1ea239d835 (diff) | |
parent | 2d860d2c39aa897250a2cbe6f50036b037c8e559 (diff) | |
download | nextcloud-server-104a1097b577291c1814a33f23ef2cb8b47b62c4.tar.gz nextcloud-server-104a1097b577291c1814a33f23ef2cb8b47b62c4.zip |
Merge pull request #35621 from nextcloud/enh/noid/sabre-plugin-publicwebdav
Allow additional Sabre plugins in publicwebdav.php
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dav/appinfo/v1/publicwebdav.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/dav/appinfo/v1/publicwebdav.php b/apps/dav/appinfo/v1/publicwebdav.php index 409fbbcf4a7..5a405df1554 100644 --- a/apps/dav/appinfo/v1/publicwebdav.php +++ b/apps/dav/appinfo/v1/publicwebdav.php @@ -30,6 +30,8 @@ * */ +use OCP\EventDispatcher\IEventDispatcher; +use OCP\SabrePublicPluginEvent; use Psr\Log\LoggerInterface; // load needed apps @@ -111,6 +113,11 @@ $server = $serverFactory->createServer($baseuri, $requestUri, $authPlugin, funct $server->addPlugin($linkCheckPlugin); $server->addPlugin($filesDropPlugin); +// allow setup of additional plugins +$event = new SabrePublicPluginEvent($server); +/** @var IEventDispatcher $eventDispatcher */ +$eventDispatcher = \OC::$server->get(IEventDispatcher::class); +$eventDispatcher->dispatchTyped($event); // And off we go! $server->exec(); |