From 0593b039fc3387e76aa9798bcbf93bda8466667b Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Fri, 16 Apr 2021 12:39:08 +0200 Subject: Move over notification to new registration Signed-off-by: Roeland Jago Douma --- apps/files/lib/AppInfo/Application.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'apps/files/lib') 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']]); } -- cgit v1.2.3