Skip to content

Commit

Permalink
Remove explicit hookmanager-query, already passed as argument
Browse files Browse the repository at this point in the history
Signed-off-by: Claus-Justus Heine <Claus-Justus.Heine@IANS.Uni-Stuttgart.DE>
  • Loading branch information
Claus-Justus Heine authored and tcitworld committed Jan 20, 2023
1 parent 1ef937c commit 887af37
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions apps/dav/lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 887af37

Please sign in to comment.