diff options
Diffstat (limited to 'apps/dav/lib/Server.php')
-rw-r--r-- | apps/dav/lib/Server.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/dav/lib/Server.php b/apps/dav/lib/Server.php index c2c903fa198..5335db98fce 100644 --- a/apps/dav/lib/Server.php +++ b/apps/dav/lib/Server.php @@ -55,6 +55,7 @@ use OCA\DAV\Connector\Sabre\QuotaPlugin; use OCA\DAV\Files\BrowserErrorPagePlugin; use OCA\DAV\Connector\Sabre\AnonymousOptionsPlugin; use OCA\DAV\Files\LazySearchBackend; +use OCA\DAV\Provisioning\Apple\AppleProvisioningPlugin; use OCA\DAV\SystemTag\SystemTagPlugin; use OCA\DAV\Upload\ChunkingPlugin; use OCP\IRequest; @@ -62,6 +63,7 @@ use OCP\SabrePluginEvent; use Sabre\CardDAV\VCFExportPlugin; use Sabre\DAV\Auth\Plugin; use OCA\DAV\Connector\Sabre\TagsPlugin; +use Sabre\DAV\UUIDUtil; use SearchDAV\DAV\SearchPlugin; use OCA\DAV\AppInfo\PluginManager; @@ -281,6 +283,16 @@ class Server { \OC::$server->getConfig(), \OC::$server->query(BirthdayService::class) )); + $this->server->addPlugin(new AppleProvisioningPlugin( + \OC::$server->getUserSession(), + \OC::$server->getURLGenerator(), + \OC::$server->getThemingDefaults(), + \OC::$server->getRequest(), + \OC::$server->getL10N('dav'), + function() { + return UUIDUtil::getUUID(); + } + )); } // register plugins from apps |