diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-06-29 06:51:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-29 06:51:49 +0200 |
commit | 89b6ee1a45f165346ddcc9120195714087287b47 (patch) | |
tree | a7951e212e099f08cd28b412aaa03b1fe1757523 /lib/private/Server.php | |
parent | e6780c4fc7fe0bb6ee6d2a8d4bfb2ca09d6e726a (diff) | |
parent | ab43251a45f9b04a1681a0b206d85676232dd7c3 (diff) | |
download | nextcloud-server-89b6ee1a45f165346ddcc9120195714087287b47.tar.gz nextcloud-server-89b6ee1a45f165346ddcc9120195714087287b47.zip |
Merge pull request #9773 from nextcloud/feature/noid/resource_booking
resource booking
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r-- | lib/private/Server.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php index 7824638b212..3c15873206d 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); @@ -1163,6 +1169,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(); |