]> _ Git - cubist_cms-back.git/commitdiff
wip #7175 @0:10
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 5 Nov 2024 14:54:34 +0000 (15:54 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 5 Nov 2024 14:54:34 +0000 (15:54 +0100)
src/app/Magic/Models/ExternalServer.php

index 8af8d2b70be03e097d3e8cca40812a87c047d56b..8ff4c5d4d18a7295fa198917b184a986e7517dbd 100644 (file)
@@ -36,7 +36,7 @@ class ExternalServer extends CubistMagicAbstractModel implements IServer
         $this->addField('password', Password::class, __('Mot de passe'), ['when' => ['protocol' => $this->getPasswordProtocols()]]);
         $this->addField('region', Text::class, __('Région'), ['when' => ['protocol' => 'S3']]);
         $this->addField('endpoint', URL::class, __('Endpoint'), ['when' => ['protocol' => 'S3Compatible']]);
-        $this->addField('key', Text::class, __('Clé d\'accès'), ['when' => ['protocol' => $this->getS3Protocols()]]);
+        $this->addField('access_key', Text::class, __('Clé d\'accès'), ['when' => ['protocol' => $this->getS3Protocols()]]);
         $this->addField('secret', Password::class, __('Secret'), ['when' => ['protocol' => $this->getS3Protocols()]]);
         $this->addField('bucket', Text::class, __('Bucket'), ['when' => ['protocol' => $this->getS3Protocols()]]);
         $this->addField('base_path', Text::class, __('Chemin de base'), ['default' => '/']);
@@ -156,9 +156,9 @@ class ExternalServer extends CubistMagicAbstractModel implements IServer
         return $this->region;
     }
 
-    public function getKey()
+    public function getAccessKey()
     {
-        return $this->key;
+        return $this->access_key;
     }
 
     public function getSecret()