Skip to content

Commit e1ad33e

Browse files
dborsattojaviereguiluz
authored andcommitted
Fixed Swiftmailer PHP configuration
1 parent cfee844 commit e1ad33e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/configuration/swiftmailer.rst

Lines changed: 1 addition & 1 deletion
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)