Skip to content

Commit 792756e

Browse files
committed
Added tip
1 parent 5a9b7e4 commit 792756e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

components/dependency_injection/parameters.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,12 @@ Start the string with ``@`` or ``@?`` to reference a service in Yaml.
337337
* ``@?mailer`` references the ``mailer`` service. If the service does not
338338
exists, it will be ignored;
339339

340+
.. tip::
341+
342+
Use ``@@`` to escape the ``@`` symbol in Yaml. ``@@mailer`` will be
343+
converted into the string ``"@mailer"`` instead of referencing the
344+
``mailer`` service.
345+
340346
Xml
341347
~~~
342348

0 commit comments

Comments
 (0)