move motifier from the files_sharing app to the federatedfilessharing app

This commit is contained in:
Björn Schießle 2016-05-18 16:26:59 +02:00
parent 92fa0c7dfd
commit e25fbaf65d
No known key found for this signature in database
GPG Key ID: 2378A753E2BF04F6
3 changed files with 18 additions and 13 deletions

View File

@ -20,4 +20,21 @@
*/ */
$app = new \OCA\FederatedFileSharing\AppInfo\Application('federatedfilesharing'); $app = new \OCA\FederatedFileSharing\AppInfo\Application('federatedfilesharing');
use OCA\FederatedFileSharing\Notifier;
$l = \OC::$server->getL10N('files_sharing');
$app->registerSettings(); $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'),
];
});

View File

@ -19,7 +19,7 @@
* *
*/ */
namespace OCA\Files_Sharing; namespace OCA\FederatedFileSharing;
use OCP\Notification\INotification; use OCP\Notification\INotification;

View File

@ -103,15 +103,3 @@ if ($config->getAppValue('core', 'shareapi_enabled', 'yes') === 'yes') {
} }
} }
} }
$manager = \OC::$server->getNotificationManager();
$manager->registerNotifier(function() {
return new \OCA\Files_Sharing\Notifier(
\OC::$server->getL10NFactory()
);
}, function() use ($l) {
return [
'id' => 'files_sharing',
'name' => $l->t('Federated sharing'),
];
});