10000 [WaitingCodeMerge][Book][ServiceContainer] Added new 2.3 feature '@@' escaping by tPl0ch · Pull Request #2286 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

[WaitingCodeMerge][Book][ServiceContainer] Added new 2.3 feature '@@' escaping #2286

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions book/service_container.rst
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,12 @@ looks up the value of each parameter and uses it in the service definition.

<argument type="string">http://symfony.com/?foo=%%s&bar=%%d</argument>

.. versionadded:: 2.3

Since version 2.3 it is possible to escape strings that start with an ``@`` for
parameters (i.e. a very safe mailer password) by using ``@@`` (similar to
the ``%%`` escaping strategy). This applies only to the YAML format.

The purpose of parameters is to feed information into services. Of course
there was nothing wrong with defining the service without using any parameters.
Parameters, however, have several advantages:
Expand Down
0