Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[Mailer] Add missing transports entry in XML and PHP configurations
  • Loading branch information
sebpacz committed Jan 12, 2021
commit 0636c9dffe75723c867a0f4f61c725e9a1daf7cb
4 changes: 4 additions & 0 deletions mailer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -978,6 +978,7 @@ you have a transport called ``async``, you can route the message there:

<framework:config>
<framework:messenger>
<framework:transport name="async">%env(MESSENGER_TRANSPORT_DSN)%</framework:transport>
<framework:routing message-class="Symfony\Component\Mailer\Messenger\SendEmailMessage">
<framework:sender service="async"/>
</framework:routing>
Expand All @@ -990,6 +991,9 @@ you have a transport called ``async``, you can route the message there:
// config/packages/messenger.php
$container->loadFromExtension('framework', [
'messenger' => [
'transports' => [
'async' => '%env(MESSENGER_TRANSPORT_DSN)%',
],
'routing' => [
'Symfony\Component\Mailer\Messenger\SendEmailMessage' => 'async',
],
Expand Down