diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2021-04-16 12:39:08 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2021-04-16 13:56:28 +0200 |
commit | 0593b039fc3387e76aa9798bcbf93bda8466667b (patch) | |
tree | a7ffc867435e8d905494aa6c1c3e0a403521a013 /apps/federatedfilesharing/lib | |
parent | fc1161722282ecc2d3a40627042b3dac418126cd (diff) | |
download | nextcloud-server-0593b039fc3387e76aa9798bcbf93bda8466667b.tar.gz nextcloud-server-0593b039fc3387e76aa9798bcbf93bda8466667b.zip |
Move over notification to new registration
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/federatedfilesharing/lib')
-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); - } } |