summaryrefslogtreecommitdiffstats
path: root/apps/dav/appinfo/application.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/appinfo/application.php')
-rw-r--r--apps/dav/appinfo/application.php13
1 files changed, 9 insertions, 4 deletions
diff --git a/apps/dav/appinfo/application.php b/apps/dav/appinfo/application.php
index 4ddd23d86b1..593cd770be5 100644
--- a/apps/dav/appinfo/application.php
+++ b/apps/dav/appinfo/application.php
@@ -27,6 +27,8 @@ use OCA\DAV\CardDAV\CardDavBackend;
use OCA\DAV\CardDAV\ContactsManager;
use OCA\DAV\CardDAV\SyncJob;
use OCA\DAV\CardDAV\SyncService;
+use OCA\DAV\Connector\Sabre\Principal;
+use OCA\DAV\DAV\GroupPrincipalBackend;
use OCA\DAV\HookManager;
use OCA\Dav\Migration\AddressBookAdapter;
use OCA\Dav\Migration\CalendarAdapter;
@@ -79,7 +81,7 @@ class Application extends App {
/** @var IAppContainer $c */
$db = $c->getServer()->getDatabaseConnection();
$dispatcher = $c->getServer()->getEventDispatcher();
- $principal = new \OCA\DAV\Connector\Sabre\Principal(
+ $principal = new Principal(
$c->getServer()->getUserManager(),
$c->getServer()->getGroupManager()
);
@@ -89,7 +91,7 @@ class Application extends App {
$container->registerService('CalDavBackend', function($c) {
/** @var IAppContainer $c */
$db = $c->getServer()->getDatabaseConnection();
- $principal = new \OCA\DAV\Connector\Sabre\Principal(
+ $principal = new Principal(
$c->getServer()->getUserManager(),
$c->getServer()->getGroupManager()
);
@@ -122,11 +124,14 @@ class Application extends App {
$container->registerService('BirthdayService', function($c) {
/** @var IAppContainer $c */
+ $g = new GroupPrincipalBackend(
+ $c->getServer()->getGroupManager()
+ );
return new BirthdayService(
$c->query('CalDavBackend'),
- $c->query('CardDavBackend')
+ $c->query('CardDavBackend'),
+ $g
);
-
});
}