summaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2021-04-16 12:39:08 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2021-04-16 13:56:28 +0200
commit0593b039fc3387e76aa9798bcbf93bda8466667b (patch)
treea7ffc867435e8d905494aa6c1c3e0a403521a013 /apps/dav
parentfc1161722282ecc2d3a40627042b3dac418126cd (diff)
downloadnextcloud-server-0593b039fc3387e76aa9798bcbf93bda8466667b.tar.gz
nextcloud-server-0593b039fc3387e76aa9798bcbf93bda8466667b.zip
Move over notification to new registration
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/dav')
-rw-r--r--apps/dav/lib/AppInfo/Application.php8
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 {