diff --git a/lib/private/Server.php b/lib/private/Server.php index 8de4fa7d5ca25..9009c330c7187 100644 --- a/lib/private/Server.php +++ b/lib/private/Server.php @@ -716,7 +716,7 @@ public function __construct($webRoot, \OC\Config $config) { $this->registerService('RedisFactory', function (Server $c) { $systemConfig = $c->get(SystemConfig::class); - return new RedisFactory($systemConfig, $c->getEventLogger()); + return new RedisFactory($systemConfig, $c->get(IEventLogger::class)); }); $this->registerService(\OCP\Activity\IManager::class, function (Server $c) {