8000 minor #57657 [Messenger] [SQS] Allow to pass `sslmode` as an option (… · symfony/symfony@1a16ebc · GitHub
[go: up one dir, main page]

Skip to content

Commit 1a16ebc

Browse files
minor #57657 [Messenger] [SQS] Allow to pass sslmode as an option (spuf)
This PR was merged into the 7.2 branch. Discussion ---------- [Messenger] [SQS] Allow to pass `sslmode` as an option | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | | License | MIT This is a minor. There is an option "sslmode" that is documented as an option but can be passed only in dsn query string. Commits ------- 1303cd1 [Messenger][SQS] Allow to pass sslmode as an option
2 parents 09f9eb7 + 1303cd1 commit 1a16ebc

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