diff options
author | Joas Schilling <coding@schilljs.com> | 2016-11-07 18:16:30 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-11-09 17:18:58 +0300 |
commit | d985c7f58c087724513e21ef0b658019dd4eea9e (patch) | |
tree | c2e71ed7bc7a7fa8f577430232c3197c8034e8bd /appinfo/app.php | |
parent | 433272de4c57a2d5b6616465d123fbfb79a60487 (diff) |
Start notifications
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'appinfo/app.php')
-rw-r--r-- | appinfo/app.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/appinfo/app.php b/appinfo/app.php index 71122404f..67c9d9ffd 100644 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -29,6 +29,21 @@ 'href' => $g->linkToRoute('spreed.page.index'), 'icon' => $g->imagePath('spreed', 'app.svg'), 'name' => $l->t('Calls'), + ]; +}); + +$manager = \OC::$server->getNotificationManager(); +$manager->registerNotifier(function() { + return new \OCA\Spreed\Notification\Notifier( + \OC::$server->getL10NFactory(), + \OC::$server->getURLGenerator(), + \OC::$server->getUserManager() + ); +}, function() { + $l = \OC::$server->getL10N('spreed'); + return [ + 'id' => 'spreed', + 'name' => $l->t('Spreed'), ]; }); |