diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-05-15 20:03:35 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-06-18 22:11:53 +0200 |
commit | 3dd5f3d5f659c391df3d5641b22cf28dc09f2ac8 (patch) | |
tree | 08ab184053809682d7b08c001aecf8ff8debc31f /lib/private/Server.php | |
parent | 5b60508af4b899a92c96872b9c2ba95dd9b9bb3c (diff) | |
download | nextcloud-server-3dd5f3d5f659c391df3d5641b22cf28dc09f2ac8.tar.gz nextcloud-server-3dd5f3d5f659c391df3d5641b22cf28dc09f2ac8.zip |
Abstract the Provider via a manager
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r-- | lib/private/Server.php | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php index d1818c287e1..31f088ea718 100644 --- a/lib/private/Server.php +++ b/lib/private/Server.php @@ -339,15 +339,7 @@ class Server extends ServerContainer implements IServerContainer { $dbConnection = $c->getDatabaseConnection(); return new Authentication\Token\DefaultTokenMapper($dbConnection); }); - $this->registerService(Authentication\Token\DefaultTokenProvider::class, function (Server $c) { - $mapper = $c->query(Authentication\Token\DefaultTokenMapper::class); - $crypto = $c->getCrypto(); - $config = $c->getConfig(); - $logger = $c->getLogger(); - $timeFactory = new TimeFactory(); - return new \OC\Authentication\Token\DefaultTokenProvider($mapper, $crypto, $config, $logger, $timeFactory); - }); - $this->registerAlias(IProvider::class, Authentication\Token\DefaultTokenProvider::class); + $this->registerAlias(IProvider::class, Authentication\Token\Manager::class); $this->registerService(\OCP\IUserSession::class, function (Server $c) { $manager = $c->getUserManager(); |