private ?LoggerInterface
$logger;
public function __construct(LoggerInterface
$logger = null
) { $this->logger =
$logger;
} public function createTransport(#[\SensitiveParameter] string $dsn, array $options, SerializerInterface $serializer): TransportInterface
{ unset($options['transport_name'
]);
return new AmazonSqsTransport(Connection::
fromDsn($dsn,
$options, null,
$this->logger
),
$serializer);
} public function supports(#[\SensitiveParameter] string $dsn, array $options): bool
{ return str_starts_with($dsn, 'sqs://'
) ||
preg_match('#^https://sqs\.[\w\-]+\.amazonaws\.com/.+#',
$dsn);
}}