Use auto-wiring on most outer level
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
4bc821edd9
commit
f2541e7a8b
|
@ -854,7 +854,7 @@ class OC {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static function registerAccountHooks() {
|
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');
|
\OCP\Util::connectHook('OC_User', 'changeUser', $hookHandler, 'changeUserHook');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue