diff options
Diffstat (limited to 'apps/federatedfilesharing/lib/AppInfo')
-rw-r--r-- | apps/federatedfilesharing/lib/AppInfo/Application.php | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/apps/federatedfilesharing/lib/AppInfo/Application.php b/apps/federatedfilesharing/lib/AppInfo/Application.php index 1bb6e5d31b6..30844750ca5 100644 --- a/apps/federatedfilesharing/lib/AppInfo/Application.php +++ b/apps/federatedfilesharing/lib/AppInfo/Application.php @@ -38,7 +38,6 @@ use OCP\AppFramework\Bootstrap\IBootstrap; use OCP\AppFramework\Bootstrap\IRegistrationContext; use OCP\AppFramework\IAppContainer; use OCP\Federation\ICloudFederationProviderManager; -use OCP\Notification\IManager as INotifiactionManager; class Application extends App implements IBootstrap { public function __construct() { @@ -47,23 +46,19 @@ class Application extends App implements IBootstrap { public function register(IRegistrationContext $context): void { $context->registerEventListener(LoadAdditionalScriptsEvent::class, LoadAdditionalScriptsListener::class); + $context->registerNotifierService(Notifier::class); } public function boot(IBootContext $context): void { $context->injectFn(Closure::fromCallable([$this, 'registerCloudFederationProvider'])); - $context->injectFn(Closure::fromCallable([$this, 'registerNotificationManager'])); } private function registerCloudFederationProvider(ICloudFederationProviderManager $manager, IAppContainer $appContainer): void { $manager->addCloudFederationProvider('file', 'Federated Files Sharing', - function () use ($appContainer) { + function () use ($appContainer): CloudFederationProviderFiles { return $appContainer->get(CloudFederationProviderFiles::class); }); } - - private function registerNotificationManager(INotifiactionManager $manager): void { - $manager->registerNotifierService(Notifier::class); - } } |