hook up calendar resource managers/backends with server container
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
This commit is contained in:
parent
c83629674e
commit
9aca92c441
|
@ -174,6 +174,12 @@ class Server extends ServerContainer implements IServerContainer {
|
||||||
$this->registerAlias(\OCP\Calendar\IManager::class, \OC\Calendar\Manager::class);
|
$this->registerAlias(\OCP\Calendar\IManager::class, \OC\Calendar\Manager::class);
|
||||||
$this->registerAlias('CalendarManager', \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(\OCP\Contacts\IManager::class, \OC\ContactsManager::class);
|
||||||
$this->registerAlias('ContactsManager', \OCP\Contacts\IManager::class);
|
$this->registerAlias('ContactsManager', \OCP\Contacts\IManager::class);
|
||||||
|
|
||||||
|
@ -1174,6 +1180,20 @@ class Server extends ServerContainer implements IServerContainer {
|
||||||
return $this->query('CalendarManager');
|
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() {
|
private function connectDispatcher() {
|
||||||
$dispatcher = $this->getEventDispatcher();
|
$dispatcher = $this->getEventDispatcher();
|
||||||
|
|
||||||
|
|
|
@ -67,6 +67,24 @@ interface IServerContainer extends IContainer {
|
||||||
*/
|
*/
|
||||||
public function getCalendarManager();
|
public function getCalendarManager();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The calendar resource backend manager will act as a broker between consumers
|
||||||
|
* for calendar resource information an providers which actual deliver the room information.
|
||||||
|
*
|
||||||
|
* @return \OCP\Calendar\Resource\IBackend
|
||||||
|
* @since 14.0.0
|
||||||
|
*/
|
||||||
|
public function getCalendarResourceBackendManager();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The calendar room backend manager will act as a broker between consumers
|
||||||
|
* for calendar room information an providers which actual deliver the room information.
|
||||||
|
*
|
||||||
|
* @return \OCP\Calendar\Room\IBackend
|
||||||
|
* @since 14.0.0
|
||||||
|
*/
|
||||||
|
public function getCalendarRoomBackendManager();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The contacts manager will act as a broker between consumers for contacts information and
|
* The contacts manager will act as a broker between consumers for contacts information and
|
||||||
* providers which actual deliver the contact information.
|
* providers which actual deliver the contact information.
|
||||||
|
|
Loading…
Reference in New Issue