Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-11-07 18:16:30 +0300
committerJoas Schilling <coding@schilljs.com>2016-11-09 17:18:58 +0300
commitd985c7f58c087724513e21ef0b658019dd4eea9e (patch)
treec2e71ed7bc7a7fa8f577430232c3197c8034e8bd /appinfo/app.php
parent433272de4c57a2d5b6616465d123fbfb79a60487 (diff)
Start notifications
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'appinfo/app.php')
-rw-r--r--appinfo/app.php15
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'),
];
});