aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Authentication/TwoFactorAuth
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2023-06-06 11:09:24 +0200
committerChristoph Wurst <ChristophWurst@users.noreply.github.com>2023-07-06 15:21:22 +0200
commit14719110b9c795a95b23c2278168b9d6123b1a62 (patch)
tree9919ba8c849e3397e23e46ad9f1fdc3f951d3a7f /lib/private/Authentication/TwoFactorAuth
parent5538a40029da60547798ae6f9e11179c4ee4a642 (diff)
downloadnextcloud-server-14719110b9c795a95b23c2278168b9d6123b1a62.tar.gz
nextcloud-server-14719110b9c795a95b23c2278168b9d6123b1a62.zip
chore: Replace \OC::$server->query with \OCP\Server::get in /lib
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/Authentication/TwoFactorAuth')
-rw-r--r--lib/private/Authentication/TwoFactorAuth/ProviderLoader.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Authentication/TwoFactorAuth/ProviderLoader.php b/lib/private/Authentication/TwoFactorAuth/ProviderLoader.php
index 25cdc387f61..efd92f8ba30 100644
--- a/lib/private/Authentication/TwoFactorAuth/ProviderLoader.php
+++ b/lib/private/Authentication/TwoFactorAuth/ProviderLoader.php
@@ -66,7 +66,7 @@ class ProviderLoader {
foreach ($providerClasses as $class) {
try {
$this->loadTwoFactorApp($appId);
- $provider = OC::$server->query($class);
+ $provider = \OCP\Server::get($class);
$providers[$provider->getId()] = $provider;
} catch (QueryException $exc) {
// Provider class can not be resolved
@@ -80,7 +80,7 @@ class ProviderLoader {
foreach ($registeredProviders as $provider) {
try {
$this->loadTwoFactorApp($provider->getAppId());
- $provider = OC::$server->query($provider->getService());
+ $provider = \OCP\Server::get($provider->getService());
$providers[$provider->getId()] = $provider;
} catch (QueryException $exc) {
// Provider class can not be resolved