8000 [Messenger][SQS] Allow to pass sslmode as an option · symfony/symfony@1303cd1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1303cd1

Browse files
authored
[Messenger][SQS] Allow to pass sslmode as an option
1 parent 3a3f55c commit 1303cd1

File tree

1 file changed

+1
-1
lines changed
  • src/Symfony/Component/Messenger/Bridge/AmazonSqs/Transport

1 file changed

+1
-1
lines changed

src/Symfony/Component/Messenger/Bridge/AmazonSqs/Transport/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public static function fromDsn(#[\SensitiveParameter] string $dsn, array $option
147147
unset($query['region']);
148148

149149
if ('default' !== ($params['host'] ?? 'default')) {
150-
$clientConfiguration['endpoint'] = \sprintf('%s://%s%s', ($query['sslmode'] ?? null) === 'disable' ? 'http' : 'https', $params['host'], ($params['port'] ?? null) ? ':'.$params['port'] : '');
150+
$clientConfiguration['endpoint'] = \sprintf('%s://%s%s', ($options['sslmode'] ?? null) === 'disable' ? 'http' : 'https', $params['host'], ($params['port'] ?? null) ? ':'.$params['port'] : '');
151151
if (preg_match(';^sqs\.([^\.]++)\.amazonaws\.com$;', $params['host'], $matches)) {
152152
$clientConfiguration['region'] = $matches[1];
153153
}

0 commit comments

Comments
 (0)
0