mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-18 22:18:00 +00:00
S3/Minio storage controller Support
This commit is contained in:
37
storage-controllers/s3/Aws/S3/UseArnRegion/Configuration.php
Normal file
37
storage-controllers/s3/Aws/S3/UseArnRegion/Configuration.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
namespace Aws\S3\UseArnRegion;
|
||||
|
||||
use Aws;
|
||||
use Aws\S3\UseArnRegion\Exception\ConfigurationException;
|
||||
|
||||
class Configuration implements ConfigurationInterface
|
||||
{
|
||||
private $useArnRegion;
|
||||
|
||||
public function __construct($useArnRegion)
|
||||
{
|
||||
$this->useArnRegion = Aws\boolean_value($useArnRegion);
|
||||
if (is_null($this->useArnRegion)) {
|
||||
throw new ConfigurationException("'use_arn_region' config option"
|
||||
. " must be a boolean value.");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function isUseArnRegion()
|
||||
{
|
||||
return $this->useArnRegion;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function toArray()
|
||||
{
|
||||
return [
|
||||
'use_arn_region' => $this->isUseArnRegion(),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user