diff options
author | Joas Schilling <coding@schilljs.com> | 2019-04-30 14:29:30 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2019-07-15 15:15:00 +0200 |
commit | 6d71e471e166c30c0b9abe05d36240b9f1556d8e (patch) | |
tree | 561fe5a415ddfc239f9b6e2549df55bfa6a7e51b /apps/comments/lib/AppInfo | |
parent | 64f67818bcc6cc61cc49b1a7c032f3db85b73c91 (diff) | |
download | nextcloud-server-6d71e471e166c30c0b9abe05d36240b9f1556d8e.tar.gz nextcloud-server-6d71e471e166c30c0b9abe05d36240b9f1556d8e.zip |
Update shipped implementations of the INotifier
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/comments/lib/AppInfo')
-rw-r--r-- | apps/comments/lib/AppInfo/Application.php | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/apps/comments/lib/AppInfo/Application.php b/apps/comments/lib/AppInfo/Application.php index b44c1c519c8..3d20cbbc169 100644 --- a/apps/comments/lib/AppInfo/Application.php +++ b/apps/comments/lib/AppInfo/Application.php @@ -76,15 +76,7 @@ class Application extends App { } protected function registerNotifier() { - $this->getContainer()->getServer()->getNotificationManager()->registerNotifier( - function() { - return $this->getContainer()->query(Notifier::class); - }, - function () { - $l = $this->getContainer()->getServer()->getL10NFactory()->get('comments'); - return ['id' => 'comments', 'name' => $l->t('Comments')]; - } - ); + $this->getContainer()->getServer()->getNotificationManager()->registerNotifier(Notifier::class); } protected function registerCommentsEventHandler() { |