Skip to content

Commit

Permalink
Explicitly bind correct mailer services
Browse files Browse the repository at this point in the history
Fixes bug introduced in #2. The exception mailer now uses they correct mailer and transport again.
  • Loading branch information
bobvandevijver authored May 10, 2019
1 parent a3408ac commit 29a98e9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Resources/config/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@ services:
public: false
autowire: true
autoconfigure: true
bind:
# Explicitly bind the correct mailer, as we do not want the default mailer
$mailer: "@swiftmailer.mailer.exception_mailer"
# Explicitly bind the correct real transport, as we do not want the default mailer transport
# Next to that, we also need the real transport, and not the spool
$transport: "@swiftmailer.mailer.exception_mailer.transport.real"

0 comments on commit 29a98e9

Please sign in to comment.