for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace AbacaphiliacFeature\AwsSdk\ClaimCheck\Bootstrap\ContextTrait;
trait AwsConfigContextTrait
{
/**
* @return mixed[]
*/
abstract public function overloadEnvironmentVariables();
public function getAwsServiceConfig()
$this->overloadEnvironmentVariables();
return [
'region' => getenv('AWS_REGION') ?: 'us-west-2',
'version' => getenv('AWS_VERSION') ?: 'latest',
'credentials' => [
'key' => getenv('AWS_KEY') ?: 'foo',
'secret' => getenv('AWS_SECRET') ?: 'bar',
],
];
}