Skip to content

Commit 83b1232

Browse files
committed
Add support for overriding the endpoint in SQS
1 parent ae175cf commit 83b1232

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Queue/Sqs.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ public function __construct($configName)
6060
],
6161
];
6262

63+
$endpoint = $config->get('commonResource.sqs.' . $configName . '.endpoint');
64+
if ($endpoint) {
65+
$clientConfig['endpoint'] = $endpoint;
66+
}
67+
6368
if ($region) {
6469
$clientConfig['region'] = $region;
6570
}

0 commit comments

Comments
 (0)