aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Server.php
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2017-11-11 02:02:17 +0100
committerGeorg Ehrke <developer@georgehrke.com>2017-11-11 11:28:34 +0100
commita87d9860418948a72fbe3d29a2cc5d589be147ec (patch)
treec4613956e0e60086f0f95f723f327d436ca51ebf /apps/dav/lib/Server.php
parent4d5ed1372a8a22f17b5da6673fcf151aab8ce801 (diff)
downloadnextcloud-server-a87d9860418948a72fbe3d29a2cc5d589be147ec.tar.gz
nextcloud-server-a87d9860418948a72fbe3d29a2cc5d589be147ec.zip
create a user's birthday calendar right after they requested it
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'apps/dav/lib/Server.php')
-rw-r--r--apps/dav/lib/Server.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/dav/lib/Server.php b/apps/dav/lib/Server.php
index ab20d14cab7..afa52530b00 100644
--- a/apps/dav/lib/Server.php
+++ b/apps/dav/lib/Server.php
@@ -33,6 +33,7 @@
namespace OCA\DAV;
use OC\AppFramework\Utility\TimeFactory;
+use OCA\DAV\CalDAV\BirthdayService;
use OCA\DAV\CalDAV\Schedule\IMipPlugin;
use OCA\DAV\CardDAV\ImageExportPlugin;
use OCA\DAV\CardDAV\PhotoCache;
@@ -260,7 +261,8 @@ class Server {
)));
}
$this->server->addPlugin(new \OCA\DAV\CalDAV\BirthdayCalendar\EnablePlugin(
- \OC::$server->getConfig()
+ \OC::$server->getConfig(),
+ \OC::$server->query(BirthdayService::class)
));
}