Skip to content

Commit ab5526f

Browse files
committed
Merge pull request #2931 from WouterJ/continue_2882
Added tip about escaping @
2 parents e8a6963 + 792756e commit ab5526f

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)