diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2016-05-04 15:27:43 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2016-05-24 11:26:52 +0200 |
commit | 752ec68e18fb1bd4abe8237dd858d42d11531926 (patch) | |
tree | f76078553d8bd3e25e5fb39114ccf5b5a24ec87e /apps/updatenotification/appinfo | |
parent | aac990eddf0a3bcc2c68b30ebc23b51ed5d0a54e (diff) | |
download | nextcloud-server-752ec68e18fb1bd4abe8237dd858d42d11531926.tar.gz nextcloud-server-752ec68e18fb1bd4abe8237dd858d42d11531926.zip |
Add a notifier that parses the notifications
Diffstat (limited to 'apps/updatenotification/appinfo')
-rw-r--r-- | apps/updatenotification/appinfo/app.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/updatenotification/appinfo/app.php b/apps/updatenotification/appinfo/app.php index a88861c0942..2457ec21018 100644 --- a/apps/updatenotification/appinfo/app.php +++ b/apps/updatenotification/appinfo/app.php @@ -38,4 +38,16 @@ if(\OC::$server->getConfig()->getSystemValue('updatechecker', true) === true) { \OC_App::registerAdmin('updatenotification', 'admin'); } } + + $manager = \OC::$server->getNotificationManager(); + $manager->registerNotifier(function() { + return new \OCA\UpdateNotification\Notification\Notifier( + \OC::$server->getL10NFactory() + ); + }, function() use ($l) { + return [ + 'id' => 'updatenotification', + 'name' => $l->t('Update notifications'), + ]; + }); } |