Skip to content

Commit 7a963bd

Browse files
jbdelhommeauJean-Baptiste Delhommeau
authored and
Jean-Baptiste Delhommeau
committed
User double \ instead of four \ in expression service
1 parent 134a7f0 commit 7a963bd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

service_container/expression_language.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ to another service: ``App\Mailer``. One way to do this is with an expression:
2929
3030
App\Mailer:
3131
arguments: ["@=service('App\\\\Mail\\\\MailerConfiguration').getMailerMethod()"]
32+
# Warning: Double escape is necessary with single-quoted strings https://yaml.org/spec/1.2/spec.html#id2787109
33+
# arguments: ['@=service("App\\Mail\\MailerConfiguration").getMailerMethod()']
3234
3335
.. code-block:: xml
3436

0 commit comments

Comments
 (0)