summaryrefslogtreecommitdiffstats
path: root/apps/updatenotification/appinfo
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2018-01-11 11:38:26 +0100
committerJoas Schilling <coding@schilljs.com>2018-01-15 09:55:03 +0100
commit50e1cee5c7a8e9354e2bafac22a60b0e369a720f (patch)
tree83adf4259ecc27abdf6265dce28d8f057e98eb3f /apps/updatenotification/appinfo
parentffb3a3e33a2b0468a39ab9f11cf8f63f020bd0bb (diff)
downloadnextcloud-server-50e1cee5c7a8e9354e2bafac22a60b0e369a720f.tar.gz
nextcloud-server-50e1cee5c7a8e9354e2bafac22a60b0e369a720f.zip
Automatic DI for Controllers also works
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/updatenotification/appinfo')
-rw-r--r--apps/updatenotification/appinfo/app.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/updatenotification/appinfo/app.php b/apps/updatenotification/appinfo/app.php
index fd1739bde55..664b5bc5a2b 100644
--- a/apps/updatenotification/appinfo/app.php
+++ b/apps/updatenotification/appinfo/app.php
@@ -44,7 +44,7 @@ if(\OC::$server->getConfig()->getSystemValue('updatechecker', true) === true) {
}
$manager = \OC::$server->getNotificationManager();
- $manager->registerNotifier(function() use ($manager) {
+ $manager->registerNotifier(function() {
return \OC::$server->query(\OCA\UpdateNotification\Notification\Notifier::class);
}, function() {
$l = \OC::$server->getL10N('updatenotification');