Use auto-wiring on most outer level

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2020-10-20 17:43:50 +02:00
parent 4bc821edd9
commit f2541e7a8b
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
1 changed files with 1 additions and 1 deletions

View File

@ -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');
} }