|
|
@@ -361,7 +361,7 @@ class Server extends ServerContainer implements IServerContainer { |
|
|
|
}); |
|
|
|
$this->registerAlias(IProvider::class, Authentication\Token\Manager::class); |
|
|
|
|
|
|
|
$this->registerService(\OCP\IUserSession::class, function (Server $c) { |
|
|
|
$this->registerService(\OC\User\Session::class, function (Server $c) { |
|
|
|
$manager = $c->getUserManager(); |
|
|
|
$session = new \OC\Session\Memory(''); |
|
|
|
$timeFactory = new TimeFactory(); |
|
|
@@ -430,7 +430,8 @@ class Server extends ServerContainer implements IServerContainer { |
|
|
|
}); |
|
|
|
return $userSession; |
|
|
|
}); |
|
|
|
$this->registerAlias('UserSession', \OCP\IUserSession::class); |
|
|
|
$this->registerAlias(\OCP\IUserSession::class, \OC\User\Session::class); |
|
|
|
$this->registerAlias('UserSession', \OC\User\Session::class); |
|
|
|
|
|
|
|
$this->registerAlias(\OCP\Authentication\TwoFactorAuth\IRegistry::class, \OC\Authentication\TwoFactorAuth\Registry::class); |
|
|
|
|