diff options
author | Georg Ehrke <developer@georgehrke.com> | 2017-11-07 01:31:28 +0100 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2017-11-09 15:14:58 +0100 |
commit | fa416e031b1d630d443c4b484f269d0290e372be (patch) | |
tree | 45ab2ea68574b7fbe7809ea741d7c6c7a56415b5 /apps/dav/appinfo/app.php | |
parent | 556b2a2b6facb147295abebb18d1b391afa3f184 (diff) | |
download | nextcloud-server-fa416e031b1d630d443c4b484f269d0290e372be.tar.gz nextcloud-server-fa416e031b1d630d443c4b484f269d0290e372be.zip |
integrate Dav app with Calendar API
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'apps/dav/appinfo/app.php')
-rw-r--r-- | apps/dav/appinfo/app.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/dav/appinfo/app.php b/apps/dav/appinfo/app.php index e312b48d0b8..8a534a75970 100644 --- a/apps/dav/appinfo/app.php +++ b/apps/dav/appinfo/app.php @@ -55,3 +55,11 @@ $cm->register(function() use ($cm, $app) { $app->setupContactsProvider($cm, $user->getUID()); } }); + +$calendarManager = \OC::$server->getCalendarManager(); +$calendarManager->register(function() use ($calendarManager, $app) { + $user = \OC::$server->getUserSession()->getUser(); + if ($user !== null) { + $app->setupCalendarProvider($calendarManager, $user->getUID()); + } +}); |