aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/AppInfo
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2021-11-03 13:07:00 +0100
committerRobin Appelman <robin@icewind.nl>2022-01-20 16:08:48 +0100
commitb391d5714f525cd391ddc23ee1d8e8b689d9c5b1 (patch)
treef48e5651e022c6048fea0dc4564acf4780fd8e79 /apps/files_external/lib/AppInfo
parenta836aa34a66da4d970d0120a08ea15d70f5e1894 (diff)
downloadnextcloud-server-b391d5714f525cd391ddc23ee1d8e8b689d9c5b1.tar.gz
nextcloud-server-b391d5714f525cd391ddc23ee1d8e8b689d9c5b1.zip
do not use deprecated query() method
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/files_external/lib/AppInfo')
-rw-r--r--apps/files_external/lib/AppInfo/Application.php56
1 files changed, 28 insertions, 28 deletions
diff --git a/apps/files_external/lib/AppInfo/Application.php b/apps/files_external/lib/AppInfo/Application.php
index 222116db5ec..6f8018746b3 100644
--- a/apps/files_external/lib/AppInfo/Application.php
+++ b/apps/files_external/lib/AppInfo/Application.php
@@ -127,16 +127,16 @@ class Application extends App implements IBackendProvider, IAuthMechanismProvide
$container = $this->getContainer();
$backends = [
- $container->query(Local::class),
- $container->query(FTP::class),
- $container->query(DAV::class),
- $container->query(OwnCloud::class),
- $container->query(SFTP::class),
- $container->query(AmazonS3::class),
- $container->query(Swift::class),
- $container->query(SFTP_Key::class),
- $container->query(SMB::class),
- $container->query(SMB_OC::class),
+ $container->get(Local::class),
+ $container->get(FTP::class),
+ $container->get(DAV::class),
+ $container->get(OwnCloud::class),
+ $container->get(SFTP::class),
+ $container->get(AmazonS3::class),
+ $container->get(Swift::class),
+ $container->get(SFTP_Key::class),
+ $container->get(SMB::class),
+ $container->get(SMB_OC::class),
];
return $backends;
@@ -150,38 +150,38 @@ class Application extends App implements IBackendProvider, IAuthMechanismProvide
return [
// AuthMechanism::SCHEME_NULL mechanism
- $container->query(NullMechanism::class),
+ $container->get(NullMechanism::class),
// AuthMechanism::SCHEME_BUILTIN mechanism
- $container->query(Builtin::class),
+ $container->get(Builtin::class),
// AuthMechanism::SCHEME_PASSWORD mechanisms
- $container->query(Password::class),
- $container->query(SessionCredentials::class),
- $container->query(LoginCredentials::class),
- $container->query(UserProvided::class),
- $container->query(GlobalAuth::class),
- $container->query(UserGlobalAuth::class),
+ $container->get(Password::class),
+ $container->get(SessionCredentials::class),
+ $container->get(LoginCredentials::class),
+ $container->get(UserProvided::class),
+ $container->get(GlobalAuth::class),
+ $container->get(UserGlobalAuth::class),
// AuthMechanism::SCHEME_OAUTH1 mechanisms
- $container->query(OAuth1::class),
+ $container->get(OAuth1::class),
// AuthMechanism::SCHEME_OAUTH2 mechanisms
- $container->query(OAuth2::class),
+ $container->get(OAuth2::class),
// AuthMechanism::SCHEME_PUBLICKEY mechanisms
- $container->query(RSA::class),
- $container->query(RSAPrivateKey::class),
+ $container->get(RSA::class),
+ $container->get(RSAPrivateKey::class),
// AuthMechanism::SCHEME_OPENSTACK mechanisms
- $container->query(OpenStackV2::class),
- $container->query(OpenStackV3::class),
- $container->query(Rackspace::class),
+ $container->get(OpenStackV2::class),
+ $container->get(OpenStackV3::class),
+ $container->get(Rackspace::class),
// Specialized mechanisms
- $container->query(AccessKey::class),
- $container->query(KerberosAuth::class),
- $container->query(KerberosApacheAuth::class),
+ $container->get(AccessKey::class),
+ $container->get(KerberosAuth::class),
+ $container->get(KerberosApacheAuth::class),
];
}
}