From e1ad33ef6380b04fe0426c4ce28166a6775b47f7 Mon Sep 17 00:00:00 2001 From: Davide Borsatto Date: Thu, 18 Jul 2019 12:56:11 +0200 Subject: [PATCH] Fixed Swiftmailer PHP configuration --- reference/configuration/swiftmailer.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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', ])