We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 134a7f0 commit 6c60285Copy full SHA for 6c60285
service_container/expression_language.rst
@@ -28,7 +28,9 @@ to another service: ``App\Mailer``. One way to do this is with an expression:
28
App\Mail\MailerConfiguration: ~
29
30
App\Mailer:
31
- arguments: ["@=service('App\\\\Mail\\\\MailerConfiguration').getMailerMethod()"]
+ arguments: ['@=service("App\\Mail\\MailerConfiguration").getMailerMethod()']
32
+ # when using double-quoted strings, the backslash needs to be escaped twice (see https://yaml.org/spec/1.2/spec.html#id2787109)
33
+ # arguments: ["@=service('App\\\\Mail\\\\MailerConfiguration').getMailerMethod()"]
34
35
.. code-block:: xml
36
0 commit comments