diff options
author | Björn Schießle <schiessle@owncloud.com> | 2016-05-18 16:26:59 +0200 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2016-05-20 21:15:16 +0200 |
commit | e25fbaf65d166fa125d867457ff7a47287d5278c (patch) | |
tree | 59c0035e6d40e6ed7a9df560708928c583a04cf8 /apps/federatedfilesharing/appinfo | |
parent | 92fa0c7dfdd5f8d9bc40ddc1c40ced97620d49f5 (diff) | |
download | nextcloud-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.php | 17 |
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'), + ]; +}); |