aboutsummaryrefslogtreecommitdiffstats
path: root/apps/updatenotification/lib/AppInfo/Application.php
diff options
context:
space:
mode:
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);
}
}