diff options
Diffstat (limited to 'apps/dav')
-rw-r--r-- | apps/dav/lib/AppInfo/Application.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/dav/lib/AppInfo/Application.php b/apps/dav/lib/AppInfo/Application.php index dcca8324397..7d5b98199d7 100644 --- a/apps/dav/lib/AppInfo/Application.php +++ b/apps/dav/lib/AppInfo/Application.php @@ -72,7 +72,6 @@ use OCP\IConfig; use OCP\ILogger; use OCP\IServerContainer; use OCP\IUser; -use OCP\Notification\IManager as INotificationManager; use Psr\Container\ContainerInterface; use Symfony\Component\EventDispatcher\EventDispatcherInterface; use Symfony\Component\EventDispatcher\GenericEvent; @@ -117,6 +116,8 @@ class Application extends App implements IBootstrap { $context->registerEventListener(CalendarObjectCreatedEvent::class, CalendarContactInteractionListener::class); $context->registerEventListener(CalendarObjectUpdatedEvent::class, CalendarContactInteractionListener::class); $context->registerEventListener(CalendarShareUpdatedEvent::class, CalendarContactInteractionListener::class); + + $context->registerNotifierService(Notifier::class); } public function boot(IBootContext $context): void { @@ -126,7 +127,6 @@ class Application extends App implements IBootstrap { $context->injectFn([$this, 'registerHooks']); $context->injectFn([$this, 'registerContactsManager']); $context->injectFn([$this, 'registerCalendarManager']); - $context->injectFn([$this, 'registerNotifier']); $context->injectFn([$this, 'registerCalendarReminders']); } @@ -396,10 +396,6 @@ class Application extends App implements IBootstrap { $cm->setupCalendarProvider($calendarManager, $userId); } - public function registerNotifier(INotificationManager $manager): void { - $manager->registerNotifierService(Notifier::class); - } - public function registerCalendarReminders(NotificationProviderManager $manager, ILogger $logger): void { try { |