mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-20 06:58:00 +00:00
S3/Minio storage controller Support
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
namespace Aws\Sts\RegionalEndpoints;
|
||||
|
||||
class Configuration implements ConfigurationInterface
|
||||
{
|
||||
private $endpointsType;
|
||||
|
||||
public function __construct($endpointsType)
|
||||
{
|
||||
$this->endpointsType = strtolower($endpointsType);
|
||||
if (!in_array($this->endpointsType, ['legacy', 'regional'])) {
|
||||
throw new \InvalidArgumentException(
|
||||
"Configuration parameter must either be 'legacy' or 'regional'."
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function getEndpointsType()
|
||||
{
|
||||
return $this->endpointsType;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function toArray()
|
||||
{
|
||||
return [
|
||||
'endpoints_type' => $this->getEndpointsType()
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user