Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-10-20 18:43:50 +0300
committerJoas Schilling <coding@schilljs.com>2020-10-20 18:43:50 +0300
commitf2541e7a8b181d0cf50abe743649cc82ad1f575e (patch)
treeb98ee4858298556c73a0d2efce6178f09e93a49b /lib/base.php
parent4bc821edd95a6b71dd99f75632f432d5ccf2853f (diff)
Use auto-wiring on most outer level
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php
index f73d4321bfa..0213fa9e9ef 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');
}