diff options
author | Joas Schilling <coding@schilljs.com> | 2016-11-29 16:21:36 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-11-29 16:27:12 +0100 |
commit | 4c0263b78ab7cac9e7e2af48f4a4053c1a02ed25 (patch) | |
tree | 84aa4f3d96c62ce6b9c7bcb45474031a5089e5d8 /apps/dav/lib/AppInfo/Application.php | |
parent | 8d87e39146e0a657b2fecdae2f4e12dbc2368061 (diff) | |
download | nextcloud-server-4c0263b78ab7cac9e7e2af48f4a4053c1a02ed25.tar.gz nextcloud-server-4c0263b78ab7cac9e7e2af48f4a4053c1a02ed25.zip |
Move event and todo parsing to new API
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/dav/lib/AppInfo/Application.php')
-rw-r--r-- | apps/dav/lib/AppInfo/Application.php | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/apps/dav/lib/AppInfo/Application.php b/apps/dav/lib/AppInfo/Application.php index 7c32fda8f5a..669c52d1489 100644 --- a/apps/dav/lib/AppInfo/Application.php +++ b/apps/dav/lib/AppInfo/Application.php @@ -26,6 +26,7 @@ namespace OCA\DAV\AppInfo; use OCA\DAV\CalDAV\Activity\Backend; use OCA\DAV\CalDAV\Activity\Extension; +use OCA\DAV\CalDAV\Activity\Provider\Event; use OCA\DAV\CalDAV\BirthdayService; use OCA\DAV\Capabilities; use OCA\DAV\CardDAV\ContactsManager; @@ -146,11 +147,11 @@ class Application extends App { /** @var Backend $backend */ $backend = $this->getContainer()->query(Backend::class); - $subject = Extension::SUBJECT_OBJECT_ADD; + $subject = Event::SUBJECT_OBJECT_ADD; if ($eventName === '\OCA\DAV\CalDAV\CalDavBackend::updateCalendarObject') { - $subject = Extension::SUBJECT_OBJECT_UPDATE; + $subject = Event::SUBJECT_OBJECT_UPDATE; } else if ($eventName === '\OCA\DAV\CalDAV\CalDavBackend::deleteCalendarObject') { - $subject = Extension::SUBJECT_OBJECT_DELETE; + $subject = Event::SUBJECT_OBJECT_DELETE; } $backend->onTouchCalendarObject( $subject, @@ -162,11 +163,6 @@ class Application extends App { $dispatcher->addListener('\OCA\DAV\CalDAV\CalDavBackend::createCalendarObject', $listener); $dispatcher->addListener('\OCA\DAV\CalDAV\CalDavBackend::updateCalendarObject', $listener); $dispatcher->addListener('\OCA\DAV\CalDAV\CalDavBackend::deleteCalendarObject', $listener); - - $aM = $this->getContainer()->getServer()->getActivityManager(); - $aM->registerExtension(function() { - return $this->getContainer()->query(Extension::class); - }); } public function getSyncService() { |