← All changes
|
includes/sdk/s3/Aws/Sts/RegionalEndpoints/Configuration.php
+7
-1
1.2.3
→
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 | } |