From 9aca92c441229619cfef5ee4dc68f71d819bc6e9 Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Mon, 18 Jun 2018 14:33:25 +0200 Subject: hook up calendar resource managers/backends with server container Signed-off-by: Georg Ehrke --- lib/private/Server.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'lib/private') diff --git a/lib/private/Server.php b/lib/private/Server.php index 31f088ea718..1603c50e26e 100644 --- a/lib/private/Server.php +++ b/lib/private/Server.php @@ -174,6 +174,12 @@ class Server extends ServerContainer implements IServerContainer { $this->registerAlias(\OCP\Calendar\IManager::class, \OC\Calendar\Manager::class); $this->registerAlias('CalendarManager', \OC\Calendar\Manager::class); + $this->registerAlias(\OCP\Calendar\Resource\IManager::class, \OC\Calendar\Resource\Manager::class); + $this->registerAlias('CalendarResourceBackendManager', \OC\Calendar\Resource\Manager::class); + + $this->registerAlias(\OCP\Calendar\Room\IManager::class, \OC\Calendar\Room\Manager::class); + $this->registerAlias('CalendarRoomBackendManager', \OC\Calendar\Room\Manager::class); + $this->registerAlias(\OCP\Contacts\IManager::class, \OC\ContactsManager::class); $this->registerAlias('ContactsManager', \OCP\Contacts\IManager::class); @@ -1174,6 +1180,20 @@ class Server extends ServerContainer implements IServerContainer { return $this->query('CalendarManager'); } + /** + * @return \OCP\Calendar\Resource\IManager + */ + public function getCalendarResourceBackendManager() { + return $this->query('CalendarResourceBackendManager'); + } + + /** + * @return \OCP\Calendar\Room\IManager + */ + public function getCalendarRoomBackendManager() { + return $this->query('CalendarRoomBackendManager'); + } + private function connectDispatcher() { $dispatcher = $this->getEventDispatcher(); -- cgit v1.2.3