aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/AppInfo
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2021-05-07 11:36:23 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2021-05-07 12:13:45 +0200
commit257613e6efd429dd1c6cde4abbcbb590d32408e8 (patch)
tree104b2ae9487bc1ae17e8f936078abfdb38f1bd8b /apps/dav/lib/AppInfo
parentf808267949e5513188961ca5f6fc38d57f6c7fd1 (diff)
downloadnextcloud-server-257613e6efd429dd1c6cde4abbcbb590d32408e8.tar.gz
nextcloud-server-257613e6efd429dd1c6cde4abbcbb590d32408e8.zip
Remove the \OCA\DAV\CalDAV\CalDavBackend::createCalendarObject event
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/dav/lib/AppInfo')
-rw-r--r--apps/dav/lib/AppInfo/Application.php29
1 files changed, 4 insertions, 25 deletions
diff --git a/apps/dav/lib/AppInfo/Application.php b/apps/dav/lib/AppInfo/Application.php
index a5444bb20d8..19c360e708a 100644
--- a/apps/dav/lib/AppInfo/Application.php
+++ b/apps/dav/lib/AppInfo/Application.php
@@ -36,7 +36,6 @@ namespace OCA\DAV\AppInfo;
use Exception;
use OCA\DAV\BackgroundJob\UpdateCalendarResourcesRoomsBackgroundJob;
use OCA\DAV\CalDAV\Activity\Backend;
-use OCA\DAV\CalDAV\Activity\Provider\Event;
use OCA\DAV\CalDAV\BirthdayService;
use OCA\DAV\CalDAV\CalDavBackend;
use OCA\DAV\CalDAV\CalendarManager;
@@ -45,7 +44,7 @@ use OCA\DAV\CalDAV\Reminder\NotificationProvider\EmailProvider;
use OCA\DAV\CalDAV\Reminder\NotificationProvider\PushProvider;
use OCA\DAV\CalDAV\Reminder\NotificationProviderManager;
use OCA\DAV\CalDAV\Reminder\Notifier;
-use OCA\DAV\CalDAV\Reminder\ReminderService;
+
use OCA\DAV\CalDAV\WebcalCaching\RefreshWebcalService;
use OCA\DAV\Capabilities;
use OCA\DAV\CardDAV\CardDavBackend;
@@ -118,9 +117,9 @@ class Application extends App implements IBootstrap {
$context->registerEventListener(CalendarDeletedEvent::class, ActivityUpdaterListener::class);
$context->registerEventListener(CalendarDeletedEvent::class, CalendarObjectReminderUpdaterListener::class);
$context->registerEventListener(CalendarDeletedEvent::class, CalendarDeletionDefaultUpdaterListener::class);
-
+ $context->registerEventListener(CalendarObjectCreatedEvent::class, ActivityUpdaterListener::class);
$context->registerEventListener(CalendarObjectCreatedEvent::class, CalendarContactInteractionListener::class);
-
+ $context->registerEventListener(CalendarObjectCreatedEvent::class, CalendarObjectReminderUpdaterListener::class);
$context->registerEventListener(CalendarObjectUpdatedEvent::class, ActivityUpdaterListener::class);
$context->registerEventListener(CalendarObjectUpdatedEvent::class, CalendarContactInteractionListener::class);
$context->registerEventListener(CalendarObjectUpdatedEvent::class, CalendarObjectReminderUpdaterListener::class);
@@ -237,26 +236,6 @@ class Application extends App implements IBootstrap {
);
});
- $listener = function (GenericEvent $event, $eventName) use ($container): void {
- /** @var Backend $backend */
- $backend = $container->query(Backend::class);
-
- $backend->onTouchCalendarObject(
- Event::SUBJECT_OBJECT_ADD,
- $event->getArgument('calendarData'),
- $event->getArgument('shares'),
- $event->getArgument('objectData')
- );
-
- /** @var ReminderService $reminderBackend */
- $reminderService = $container->query(ReminderService::class);
-
- $reminderService->onTouchCalendarObject(
- $eventName,
- $event->getArgument('objectData')
- );
- };
- $dispatcher->addListener('\OCA\DAV\CalDAV\CalDavBackend::createCalendarObject', $listener);
$dispatcher->addListener('OCP\Federation\TrustedServerEvent::remove',
function (GenericEvent $event) {
@@ -379,4 +358,4 @@ class Application extends App implements IBootstrap {
$logger->logException($ex);
}
}
-} \ No newline at end of file
+}