diff options
author | Georg Ehrke <developer@georgehrke.com> | 2020-07-28 10:35:51 +0300 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2020-08-18 22:40:57 +0300 |
commit | 67f1ef46583e5135cfb6d0e5cbfbe441be0803a6 (patch) | |
tree | c2c4fa3dba8437dd607513b6bc204944055d520a /apps/dav/appinfo | |
parent | 5ced155032c51a90b8a9ffb6b1159a34c29194ef (diff) |
Add Typed Events for CalDAV- and CardDAV-related Events
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'apps/dav/appinfo')
-rw-r--r-- | apps/dav/appinfo/v1/caldav.php | 6 | ||||
-rw-r--r-- | apps/dav/appinfo/v1/carddav.php | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/apps/dav/appinfo/v1/caldav.php b/apps/dav/appinfo/v1/caldav.php index 8fffe3855df..e04653ddea1 100644 --- a/apps/dav/appinfo/v1/caldav.php +++ b/apps/dav/appinfo/v1/caldav.php @@ -57,8 +57,10 @@ $db = \OC::$server->getDatabaseConnection(); $userManager = \OC::$server->getUserManager(); $random = \OC::$server->getSecureRandom(); $logger = \OC::$server->getLogger(); -$dispatcher = \OC::$server->getEventDispatcher(); -$calDavBackend = new CalDavBackend($db, $principalBackend, $userManager, \OC::$server->getGroupManager(), $random, $logger, $dispatcher, true); +$dispatcher = \OC::$server->get(\OCP\EventDispatcher\IEventDispatcher::class); +$legacyDispatcher = \OC::$server->getEventDispatcher(); + +$calDavBackend = new CalDavBackend($db, $principalBackend, $userManager, \OC::$server->getGroupManager(), $random, $logger, $dispatcher, $legacyDispatcher, true); $debugging = \OC::$server->getConfig()->getSystemValue('debug', false); $sendInvitations = \OC::$server->getConfig()->getAppValue('dav', 'sendInvitations', 'yes') === 'yes'; diff --git a/apps/dav/appinfo/v1/carddav.php b/apps/dav/appinfo/v1/carddav.php index cef3b6cec06..dbab1ae9681 100644 --- a/apps/dav/appinfo/v1/carddav.php +++ b/apps/dav/appinfo/v1/carddav.php @@ -57,7 +57,7 @@ $principalBackend = new Principal( 'principals/' ); $db = \OC::$server->getDatabaseConnection(); -$cardDavBackend = new CardDavBackend($db, $principalBackend, \OC::$server->getUserManager(), \OC::$server->getGroupManager(), \OC::$server->getEventDispatcher()); +$cardDavBackend = new CardDavBackend($db, $principalBackend, \OC::$server->getUserManager(), \OC::$server->getGroupManager(), \OC::$server->get(\OCP\EventDispatcher\IEventDispatcher::class), \OC::$server->getEventDispatcher()); $debugging = \OC::$server->getConfig()->getSystemValue('debug', false); |