summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Server.php
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2017-10-19 12:57:20 +0200
committerGeorg Ehrke <developer@georgehrke.com>2019-01-30 19:50:02 +0100
commit16fec60e8f97d9878242cde63be83846bb923b3e (patch)
tree20019e7b1cf173824995b018c92a6f5ada061b15 /apps/dav/lib/Server.php
parent54093e2bd6af535e4a70f986f83398b852d49174 (diff)
downloadnextcloud-server-16fec60e8f97d9878242cde63be83846bb923b3e.tar.gz
nextcloud-server-16fec60e8f97d9878242cde63be83846bb923b3e.zip
Add Apple Provisioning profile
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'apps/dav/lib/Server.php')
-rw-r--r--apps/dav/lib/Server.php12
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