summaryrefslogtreecommitdiffstats
path: root/apps/updatenotification/lib/AppInfo/Application.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-04-30 14:29:30 +0200
committerJoas Schilling <coding@schilljs.com>2019-07-15 15:15:00 +0200
commit6d71e471e166c30c0b9abe05d36240b9f1556d8e (patch)
tree561fe5a415ddfc239f9b6e2549df55bfa6a7e51b /apps/updatenotification/lib/AppInfo/Application.php
parent64f67818bcc6cc61cc49b1a7c032f3db85b73c91 (diff)
downloadnextcloud-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/updatenotification/lib/AppInfo/Application.php')
-rw-r--r--apps/updatenotification/lib/AppInfo/Application.php10
1 files changed, 1 insertions, 9 deletions
diff --git a/apps/updatenotification/lib/AppInfo/Application.php b/apps/updatenotification/lib/AppInfo/Application.php
index 14512bae838..91b9020d82e 100644
--- a/apps/updatenotification/lib/AppInfo/Application.php
+++ b/apps/updatenotification/lib/AppInfo/Application.php
@@ -71,14 +71,6 @@ class Application extends App {
public function registerNotifier() {
$notificationsManager = $this->getContainer()->getServer()->getNotificationManager();
- $notificationsManager->registerNotifier(function() {
- return $this->getContainer()->query(Notifier::class);
- }, function() {
- $l = $this->getContainer()->getServer()->getL10N('updatenotification');
- return [
- 'id' => 'updatenotification',
- 'name' => $l->t('Update notifications'),
- ];
- });
+ $notificationsManager->registerNotifier(Notifier::class);
}
}