Skip to content

Commit e5eec74

Browse files
committed
minor symfony#11982 Fixed Swiftmailer PHP configuration (dborsatto)
This PR was submitted for the 4.0 branch but it was merged into the 4.2 branch instead (closes symfony#11982). Discussion ---------- Fixed Swiftmailer PHP configuration Just a fix for a PHP snippet in the Swiftmailer reference configuration. I chose 4.0 as target as it's the branch when this snippet was introduced, let me know if I need to change anything. Commits ------- e1ad33e Fixed Swiftmailer PHP configuration
2 parents cfee844 + e1ad33e commit e5eec74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/configuration/swiftmailer.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ alternatives based on the :ref:`service binding <services-binding>` feature:
388388
->setPublic(true)
389389
->setBindings([
390390
// this injects the second mailer when this service type-hints constructor arguments with \Swift_Mailer
391-
\Swift_Mailer => '@swiftmailer.mailer.second_mailer',
391+
\Swift_Mailer::class => '@swiftmailer.mailer.second_mailer',
392392
// this injects the second mailer when this service has a constructor argument called $specialMailer
393393
'$specialMailer' => '@swiftmailer.mailer.second_mailer',
394394
])

0 commit comments

Comments
 (0)