From 0593b039fc3387e76aa9798bcbf93bda8466667b Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Fri, 16 Apr 2021 12:39:08 +0200 Subject: Move over notification to new registration Signed-off-by: Roeland Jago Douma --- apps/dav/lib/AppInfo/Application.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'apps/dav') 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 { -- cgit v1.2.3