Skip to content

Commit 84ecdbf

Browse files
committed
minor symfony#14826 [Mailer] Add missing transports entry in XML and PHP configurations (sebpacz)
This PR was merged into the 4.4 branch. Discussion ---------- [Mailer] Add missing transports entry in XML and PHP configurations The YAML configuration of the Messenger component contains the transports entry that is not defined in the XML and PHP configurations. Commits ------- 0636c9d [Mailer] Add missing transports entry in XML and PHP configurations
2 parents f6cf126 + 0636c9d commit 84ecdbf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mailer.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -978,6 +978,7 @@ you have a transport called ``async``, you can route the message there:
978978
979979
<framework:config>
980980
<framework:messenger>
981+
<framework:transport name="async">%env(MESSENGER_TRANSPORT_DSN)%</framework:transport>
981982
<framework:routing message-class="Symfony\Component\Mailer\Messenger\SendEmailMessage">
982983
<framework:sender service="async"/>
983984
</framework:routing>
@@ -990,6 +991,9 @@ you have a transport called ``async``, you can route the message there:
990991
// config/packages/messenger.php
991992
$container->loadFromExtension('framework', [
992993
'messenger' => [
994+
'transports' => [
995+
'async' => '%env(MESSENGER_TRANSPORT_DSN)%',
996+
],
993997
'routing' => [
994998
'Symfony\Component\Mailer\Messenger\SendEmailMessage' => 'async',
995999
],

0 commit comments

Comments
 (0)