Skip to content

Commit 5a67368

Browse files
committed
remove other not used env vars.
1 parent 26a34b9 commit 5a67368

1 file changed

Lines changed: 2 additions & 11 deletions

File tree

SqsExtension.php

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,10 @@ trait SqsExtension
99
{
1010
private function buildSqsContext(): SqsContext
1111
{
12-
if (false == getenv('AWS_SQS_ENDPOINT') && false == getenv('AWS_SQS_KEY')) {
12+
if (false == $dsn = getenv('SQS_DSN')) {
1313
throw new \PHPUnit_Framework_SkippedTestError('Functional tests are not allowed in this environment');
1414
}
1515

16-
$config = [
17-
'key' => getenv('AWS_SQS_KEY'),
18-
'secret' => getenv('AWS_SQS_SECRET'),
19-
'region' => getenv('AWS_SQS_REGION'),
20-
'version' => getenv('AWS_SQS_VERSION'),
21-
'endpoint' => getenv('AWS_SQS_ENDPOINT'),
22-
'lazy' => false,
23-
];
24-
25-
return (new SqsConnectionFactory($config))->createContext();
16+
return (new SqsConnectionFactory($dsn))->createContext();
2617
}
2718
}

0 commit comments

Comments
 (0)