From f6ef779f97c2abf0543184e58dd27b39aa0ea3bc Mon Sep 17 00:00:00 2001 From: Tobia De Koninck Date: Sat, 16 Sep 2017 13:42:46 +0200 Subject: Make ContactsStore a public API Signed-off-by: Tobia De Koninck --- apps/dav/lib/AppInfo/Application.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'apps/dav/lib/AppInfo/Application.php') diff --git a/apps/dav/lib/AppInfo/Application.php b/apps/dav/lib/AppInfo/Application.php index b38f38044f3..a5571286354 100644 --- a/apps/dav/lib/AppInfo/Application.php +++ b/apps/dav/lib/AppInfo/Application.php @@ -75,6 +75,16 @@ class Application extends App { $cm->setupContactsProvider($contactsManager, $userID, $urlGenerator); } + /** + * @param IManager $contactsManager + */ + public function setupSystemContactsProvider(IContactsManager $contactsManager) { + /** @var ContactsManager $cm */ + $cm = $this->getContainer()->query(ContactsManager::class); + $urlGenerator = $this->getContainer()->getServer()->getURLGenerator(); + $cm->setupSystemContactsProvider($contactsManager, $urlGenerator); + } + /** * @param ICalendarManager $calendarManager * @param string $userId -- cgit v1.2.3