PluginProbe
Media Cloud Sync / 1.4.2
Media Cloud Sync v1.4.2
1.4.2 1.4.1 1.4.0 1.3.12 1.3.11 1.3.10 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.2.0 1.2.10 1.2.11 1.2.12 1.2.13 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 All 36 releases
← All changes | includes/sdk/s3/Aws/Sts/RegionalEndpoints/Configuration.php +7 -1 1.2.2 → 1.4.2 View file →
@@ -4,11 +4,13 @@
4 4
5 5 class Configuration implements ConfigurationInterface
6 6 {
7 7 private $endpointsType;
8 - public function __construct($endpointsType)
8 + private $isFallback;
9 + public function __construct($endpointsType, $isFallback = \false)
9 10 {
10 11 $this->endpointsType = \strtolower($endpointsType);
12 + $this->isFallback = $isFallback;
11 13 if (!\in_array($this->endpointsType, ['legacy', 'regional'])) {
12 14 throw new \InvalidArgumentException("Configuration parameter must either be 'legacy' or 'regional'.");
13 15 }
14 16 }
@@ -24,6 +26,10 @@
24 26 */
25 27 public function toArray()
26 28 {
27 29 return ['endpoints_type' => $this->getEndpointsType()];
30 + }
31 + public function isFallback()
32 + {
33 + return $this->isFallback;
28 34 }
29 35 }