summaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing/appinfo
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2016-05-18 16:26:59 +0200
committerBjörn Schießle <schiessle@owncloud.com>2016-05-20 21:15:16 +0200
commite25fbaf65d166fa125d867457ff7a47287d5278c (patch)
tree59c0035e6d40e6ed7a9df560708928c583a04cf8 /apps/federatedfilesharing/appinfo
parent92fa0c7dfdd5f8d9bc40ddc1c40ced97620d49f5 (diff)
downloadnextcloud-server-e25fbaf65d166fa125d867457ff7a47287d5278c.tar.gz
nextcloud-server-e25fbaf65d166fa125d867457ff7a47287d5278c.zip
move motifier from the files_sharing app to the federatedfilessharing app
Diffstat (limited to 'apps/federatedfilesharing/appinfo')
-rw-r--r--apps/federatedfilesharing/appinfo/app.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/apps/federatedfilesharing/appinfo/app.php b/apps/federatedfilesharing/appinfo/app.php
index 4666d343f7e..c33a887c6d6 100644
--- a/apps/federatedfilesharing/appinfo/app.php
+++ b/apps/federatedfilesharing/appinfo/app.php
@@ -20,4 +20,21 @@
*/
$app = new \OCA\FederatedFileSharing\AppInfo\Application('federatedfilesharing');
+
+use OCA\FederatedFileSharing\Notifier;
+
+$l = \OC::$server->getL10N('files_sharing');
+
$app->registerSettings();
+
+$manager = \OC::$server->getNotificationManager();
+$manager->registerNotifier(function() {
+ return new Notifier(
+ \OC::$server->getL10NFactory()
+ );
+}, function() use ($l) {
+ return [
+ 'id' => 'files_sharing',
+ 'name' => $l->t('Federated sharing'),
+ ];
+});