diff --git a/reference/configuration/swiftmailer.rst b/reference/configuration/swiftmailer.rst index 977c834e14f..39fffa57777 100644 --- a/reference/configuration/swiftmailer.rst +++ b/reference/configuration/swiftmailer.rst @@ -388,7 +388,7 @@ alternatives based on the :ref:`service binding ` feature: ->setPublic(true) ->setBindings([ // this injects the second mailer when this service type-hints constructor arguments with \Swift_Mailer - \Swift_Mailer => '@swiftmailer.mailer.second_mailer', + \Swift_Mailer::class => '@swiftmailer.mailer.second_mailer', // this injects the second mailer when this service has a constructor argument called $specialMailer '$specialMailer' => '@swiftmailer.mailer.second_mailer', ])