]> source.dussan.org Git - nextcloud-server.git/commitdiff
do not use deprecated query() method
authorArthur Schiwon <blizzz@arthur-schiwon.de>
Wed, 3 Nov 2021 12:07:00 +0000 (13:07 +0100)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Thu, 20 Jan 2022 19:14:09 +0000 (19:14 +0000)
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
apps/files_external/lib/AppInfo/Application.php

index 222116db5eccb8242dd9ab9473e59637f5e8da66..6f8018746b34b10f3327d28f6e31d920552a790a 100644 (file)
@@ -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),
                ];
        }
 }