summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/RootCollection.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/RootCollection.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/RootCollection.php')
-rw-r--r--apps/dav/lib/RootCollection.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/apps/dav/lib/RootCollection.php b/apps/dav/lib/RootCollection.php
index adf9d7b99c7..9ad1ea5221e 100644
--- a/apps/dav/lib/RootCollection.php
+++ b/apps/dav/lib/RootCollection.php
@@ -35,7 +35,9 @@ use OCA\DAV\Connector\Sabre\Principal;
use OCA\DAV\DAV\GroupPrincipalBackend;
use OCA\DAV\DAV\SystemPrincipalBackend;
use OCA\DAV\CalDAV\Principal\Collection;
+use OCA\DAV\Provisioning\Apple\AppleProvisioningNode;
use OCA\DAV\Upload\CleanupService;
+use OCP\AppFramework\Utility\ITimeFactory;
use Sabre\DAV\SimpleCollection;
class RootCollection extends SimpleCollection {
@@ -130,6 +132,9 @@ class RootCollection extends SimpleCollection {
$avatarCollection = new Avatars\RootCollection($userPrincipalBackend, 'principals/users');
$avatarCollection->disableListing = $disableListing;
+ $appleProvisioning = new AppleProvisioningNode(
+ \OC::$server->query(ITimeFactory::class));
+
$children = [
new SimpleCollection('principals', [
$userPrincipals,
@@ -151,7 +156,10 @@ class RootCollection extends SimpleCollection {
$systemTagRelationsCollection,
$commentsCollection,
$uploadCollection,
- $avatarCollection
+ $avatarCollection,
+ new SimpleCollection('provisioning', [
+ $appleProvisioning
+ ])
];
parent::__construct('root', $children);