diff --git a/apps/dav/appinfo/v1/publicwebdav.php b/apps/dav/appinfo/v1/publicwebdav.php index c99c5bcd83399..57e7f6b10e43a 100644 --- a/apps/dav/appinfo/v1/publicwebdav.php +++ b/apps/dav/appinfo/v1/publicwebdav.php @@ -108,6 +108,11 @@ $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(); diff --git a/lib/public/SabrePublicPluginEvent.php b/lib/public/SabrePublicPluginEvent.php new file mode 100644 index 0000000000000..5c288c82b9426 --- /dev/null +++ b/lib/public/SabrePublicPluginEvent.php @@ -0,0 +1,25 @@ + 2022 + * + * @author Julien Veyssier + * + * @license AGPL-3.0-or-later + * + * This code is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License, version 3, + * as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License, version 3, + * along with this program. If not, see + * + */ +namespace OCP; + +class SabrePublicPluginEvent extends SabrePluginEvent { +}