From 887af373f5a79331d8ae9776c8f0f4c8ee1d24e9 Mon Sep 17 00:00:00 2001 From: Claus-Justus Heine Date: Wed, 7 Oct 2020 17:13:00 +0200 Subject: [PATCH] Remove explicit hookmanager-query, already passed as argument Signed-off-by: Claus-Justus Heine --- apps/dav/lib/AppInfo/Application.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/apps/dav/lib/AppInfo/Application.php b/apps/dav/lib/AppInfo/Application.php index 847f1069adb64..3b9e5d96de992 100644 --- a/apps/dav/lib/AppInfo/Application.php +++ b/apps/dav/lib/AppInfo/Application.php @@ -216,10 +216,6 @@ public function registerHooks(HookManager $hm, EventDispatcherInterface $dispatcher, IAppContainer $container, IServerContainer $serverContainer) { - /** @var HookManager $hm */ - $hm = $this->getContainer()->query(HookManager::class); - $hm->setup(); - // first time login event setup $dispatcher->addListener(IUser::class . '::firstLogin', function ($event) use ($hm) { if ($event instanceof GenericEvent) {