OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
aws-ses
/
vendor
/
aws
/
aws-sdk-php
/
src
/
Endpoint
/
UseDualstackEndpoint
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/14/2024 10:55:11 AM
rwxr-xr-x
📄
Configuration.php
1.16 KB
08/14/2024 10:55:11 AM
rw-r--r--
📄
ConfigurationInterface.php
388 bytes
08/14/2024 10:55:11 AM
rw-r--r--
📄
ConfigurationProvider.php
6.85 KB
08/14/2024 10:55:11 AM
rw-r--r--
📁
Exception
-
08/14/2024 11:03:10 AM
rwxr-xr-x
Editing: Configuration.php
Close
<?php namespace Aws\Endpoint\UseDualstackEndpoint; use Aws; use Aws\Endpoint\UseDualstackEndpoint\Exception\ConfigurationException; class Configuration implements ConfigurationInterface { private $useDualstackEndpoint; public function __construct($useDualstackEndpoint, $region) { $this->useDualstackEndpoint = Aws\boolean_value($useDualstackEndpoint); if (is_null($this->useDualstackEndpoint)) { throw new ConfigurationException("'use_dual_stack_endpoint' config option" . " must be a boolean value."); } if ($this->useDualstackEndpoint == true && (strpos($region, "iso-") !== false || strpos($region, "-iso") !== false) ) { throw new ConfigurationException("Dual-stack is not supported in ISO regions"); } } /** * {@inheritdoc} */ public function isUseDualstackEndpoint() { return $this->useDualstackEndpoint; } /** * {@inheritdoc} */ public function toArray() { return [ 'use_dual_stack_endpoint' => $this->isUseDualstackEndpoint(), ]; } }