diff --git a/src/Symfony/Component/Notifier/Bridge/AmazonSns/AmazonSnsTransportFactory.php b/src/Symfony/Component/Notifier/Bridge/AmazonSns/AmazonSnsTransportFactory.php index af0d15b03ac16..d4bb493704ca9 100644 --- a/src/Symfony/Component/Notifier/Bridge/AmazonSns/AmazonSnsTransportFactory.php +++ b/src/Symfony/Component/Notifier/Bridge/AmazonSns/AmazonSnsTransportFactory.php @@ -31,8 +31,10 @@ public function create(Dsn $dsn): AmazonSnsTransport $host = 'default' === $dsn->getHost() ? null : $dsn->getHost(); $port = $dsn->getPort(); + $sslmode = $dsn->getOption('sslmode', 'enable'); + $protocol = $sslmode === 'disable' ? 'http' : 'https'; - $options = null === $host ? [] : ['endpoint' => 'https://'.$host.($port ? ':'.$port : '')]; + $options = null === $host ? [] : ['endpoint' => $protocol.'://'.$host.($port ? ':'.$port : '')]; if ($dsn->getUser()) { $options += [ pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy