diff --git a/lib/base.php b/lib/base.php index f73d4321bf..0213fa9e9e 100644 --- a/lib/base.php +++ b/lib/base.php @@ -854,7 +854,7 @@ class OC { } private static function registerAccountHooks() { - $hookHandler = new \OC\Accounts\Hooks(\OC::$server->get(\Psr\Log\LoggerInterface::class)); + $hookHandler = \OC::$server->get(\OC\Accounts\Hooks::class); \OCP\Util::connectHook('OC_User', 'changeUser', $hookHandler, 'changeUserHook'); }