summaryrefslogtreecommitdiffstats
path: root/lib/private/Server.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r--lib/private/Server.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php
index 60a5de97bbf..18f09eb30b7 100644
--- a/lib/private/Server.php
+++ b/lib/private/Server.php
@@ -102,6 +102,7 @@ use OC\Template\SCSSCacher;
use OCA\Theming\ThemingDefaults;
use OCP\App\IAppManager;
+use OCP\AppFramework\Utility\ITimeFactory;
use OCP\Defaults;
use OCA\Theming\Util;
use OCP\Federation\ICloudIdManager;
@@ -379,7 +380,15 @@ class Server extends ServerContainer implements IServerContainer {
$this->registerAlias('UserSession', \OCP\IUserSession::class);
$this->registerService(\OC\Authentication\TwoFactorAuth\Manager::class, function (Server $c) {
- return new \OC\Authentication\TwoFactorAuth\Manager($c->getAppManager(), $c->getSession(), $c->getConfig(), $c->getActivityManager(), $c->getLogger());
+ return new \OC\Authentication\TwoFactorAuth\Manager(
+ $c->getAppManager(),
+ $c->getSession(),
+ $c->getConfig(),
+ $c->getActivityManager(),
+ $c->getLogger(),
+ $c->query(\OC\Authentication\Token\IProvider::class),
+ $c->query(ITimeFactory::class)
+ );
});
$this->registerAlias(\OCP\INavigationManager::class, \OC\NavigationManager::class);