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/files/lib/AppInfo | |
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/files/lib/AppInfo')
-rw-r--r-- | apps/files/lib/AppInfo/Application.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/files/lib/AppInfo/Application.php b/apps/files/lib/AppInfo/Application.php index 92f29bfe410..025e6c42f28 100644 --- a/apps/files/lib/AppInfo/Application.php +++ b/apps/files/lib/AppInfo/Application.php @@ -61,7 +61,6 @@ use OCP\IRequest; use OCP\IServerContainer; use OCP\ITagManager; use OCP\IUserSession; -use OCP\Notification\IManager; use OCP\Share\IManager as IShareManager; use OCP\Util; use Psr\Container\ContainerInterface; @@ -118,12 +117,13 @@ class Application extends App implements IBootstrap { $context->registerEventListener(LoadSidebar::class, LoadSidebarListener::class); $context->registerSearchProvider(FilesSearchProvider::class); + + $context->registerNotifierService(Notifier::class); } public function boot(IBootContext $context): void { $context->injectFn(Closure::fromCallable([$this, 'registerCollaboration'])); $context->injectFn([Listener::class, 'register']); - $context->injectFn(Closure::fromCallable([$this, 'registerNotification'])); $context->injectFn(Closure::fromCallable([$this, 'registerSearchProvider'])); $this->registerTemplates(); $context->injectFn(Closure::fromCallable([$this, 'registerNavigation'])); @@ -134,10 +134,6 @@ class Application extends App implements IBootstrap { $providerManager->registerResourceProvider(ResourceProvider::class); } - private function registerNotification(IManager $notifications): void { - $notifications->registerNotifierService(Notifier::class); - } - private function registerSearchProvider(ISearch $search): void { $search->registerProvider(File::class, ['apps' => ['files']]); } |