Skip to content

Commit f951ffc

Browse files
authored
[Messenger] Show package installation hint also for amqps
1 parent 2bf4514 commit f951ffc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Messenger/Transport/TransportFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function createTransport(#[\SensitiveParameter] string $dsn, array $optio
4141

4242
// Help the user to select Symfony packages based on protocol.
4343
$packageSuggestion = '';
44-
if (str_starts_with($dsn, 'amqp://')) {
44+
if (str_starts_with($dsn, 'amqp://') || str_starts_with($dsn, 'amqps://')) {
4545
$packageSuggestion = ' Run "composer require symfony/amqp-messenger" to install AMQP transport.';
4646
} elseif (str_starts_with($dsn, 'doctrine://')) {
4747
$packageSuggestion = ' Run "composer require symfony/doctrine-messenger" to install Doctrine transport.';

0 commit comments

Comments
 (0)