REDROOM
PHP 7.4.33
Path:
Logout
Edit File
Size: 1.37 KB
Close
/home/godevadmin/www/admin/vendor/aws/Aws/Endpoint/PatternEndpointProvider.php
Text
Base64
<?php namespace Aws\Endpoint; /** * Provides endpoints based on an endpoint pattern configuration array. */ class PatternEndpointProvider { /** @var array */ private $patterns; /** * @param array $patterns Hash of endpoint patterns mapping to endpoint * configurations. */ public function __construct(array $patterns) { $this->patterns = $patterns; } public function __invoke(array $args = []) { $service = isset($args['service']) ? $args['service'] : ''; $region = isset($args['region']) ? $args['region'] : ''; $keys = ["{$region}/{$service}", "{$region}/*", "*/{$service}", "*/*"]; foreach ($keys as $key) { if (isset($this->patterns[$key])) { return $this->expand( $this->patterns[$key], isset($args['scheme']) ? $args['scheme'] : 'https', $service, $region ); } } return null; } private function expand(array $config, $scheme, $service, $region) { $config['endpoint'] = $scheme . '://' . strtr($config['endpoint'], [ '{service}' => $service, '{region}' => $region ]); return $config; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 2 × Files: 5
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
UseDualstackEndpoint
DIR
-
drwxrwxr-x
2024-06-18 20:10:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
UseFipsEndpoint
DIR
-
drwxrwxr-x
2024-06-18 20:10:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
EndpointProvider.php
3.33 KB
lrwxrwxr-x
2024-06-18 20:10:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Partition.php
10.22 KB
lrwxrwxr-x
2024-06-18 20:10:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
PartitionEndpointProvider.php
3.92 KB
lrwxrwxr-x
2024-06-18 20:10:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
PartitionInterface.php
1.66 KB
lrwxrwxr-x
2024-06-18 20:10:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
PatternEndpointProvider.php
1.37 KB
lrwxrwxr-x
2024-06-18 20:10:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).