diff options
Diffstat (limited to 'apps/files_external/lib/backend/swift.php')
-rw-r--r-- | apps/files_external/lib/backend/swift.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_external/lib/backend/swift.php b/apps/files_external/lib/backend/swift.php index c0ac7c08345..2e14855206c 100644 --- a/apps/files_external/lib/backend/swift.php +++ b/apps/files_external/lib/backend/swift.php @@ -28,9 +28,12 @@ use \OCA\Files_External\Lib\Auth\AuthMechanism; use \OCA\Files_External\Service\BackendService; use \OCA\Files_External\Lib\Auth\OpenStack\OpenStack; use \OCA\Files_External\Lib\Auth\OpenStack\Rackspace; +use \OCA\Files_External\Lib\LegacyDependencyCheckPolyfill; class Swift extends Backend { + use LegacyDependencyCheckPolyfill; + public function __construct(IL10N $l, OpenStack $openstackAuth, Rackspace $rackspaceAuth) { $this ->setIdentifier('swift') @@ -46,7 +49,6 @@ class Swift extends Backend { (new DefinitionParameter('timeout', $l->t('Request timeout (seconds)'))) ->setFlag(DefinitionParameter::FLAG_OPTIONAL), ]) - ->setDependencyCheck('\OC\Files\Storage\Swift::checkDependencies') ->addAuthScheme(AuthMechanism::SCHEME_OPENSTACK) ->setLegacyAuthMechanismCallback(function(array $params) use ($openstackAuth, $rackspaceAuth) { if (isset($params['options']['key']) && $params['options']['key']) { |