aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Server.php
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2021-12-02 16:48:03 +0100
committerGitHub <noreply@github.com>2021-12-02 16:48:03 +0100
commit7acb438e428e5b0b3a79c2b7ce5a4283b0e805eb (patch)
tree7080dd0ced6d1be841ab544cff3ed90f136cc434 /lib/private/Server.php
parent9cb90b3d1d5933b7aaf23ea94c51b58796586aa7 (diff)
parent6d33d75be140081674d69cf303544405dac83541 (diff)
downloadnextcloud-server-7acb438e428e5b0b3a79c2b7ce5a4283b0e805eb.tar.gz
nextcloud-server-7acb438e428e5b0b3a79c2b7ce5a4283b0e805eb.zip
Merge pull request #30016 from nextcloud/techdebt/noid/remove-default-token-provider
Remove default token which is deprecated since Nextcloud 13
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r--lib/private/Server.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php
index d1e038d971e..13bbf972abb 100644
--- a/lib/private/Server.php
+++ b/lib/private/Server.php
@@ -522,11 +522,11 @@ class Server extends ServerContainer implements IServerContainer {
$session = new \OC\Session\Memory('');
$timeFactory = new TimeFactory();
// Token providers might require a working database. This code
- // might however be called when ownCloud is not yet setup.
+ // might however be called when Nextcloud is not yet setup.
if (\OC::$server->get(SystemConfig::class)->getValue('installed', false)) {
- $defaultTokenProvider = $c->get(IProvider::class);
+ $provider = $c->get(IProvider::class);
} else {
- $defaultTokenProvider = null;
+ $provider = null;
}
$legacyDispatcher = $c->get(SymfonyAdapter::class);
@@ -535,7 +535,7 @@ class Server extends ServerContainer implements IServerContainer {
$manager,
$session,
$timeFactory,
- $defaultTokenProvider,
+ $provider,
$c->get(\OCP\IConfig::class),
$c->get(ISecureRandom::class),
$c->getLockdownManager(),