move motifier from the files_sharing app to the federatedfilessharing app
This commit is contained in:
parent
92fa0c7dfd
commit
e25fbaf65d
|
@ -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'),
|
||||||
|
];
|
||||||
|
});
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace OCA\Files_Sharing;
|
namespace OCA\FederatedFileSharing;
|
||||||
|
|
||||||
|
|
||||||
use OCP\Notification\INotification;
|
use OCP\Notification\INotification;
|
|
@ -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'),
|
|
||||||
];
|
|
||||||
});
|
|
||||||
|
|
Loading…
Reference in New Issue