From 18561d7f2e2a05186a36e732a9fbab361cdeec73 Mon Sep 17 00:00:00 2001 From: Thomas Ploch Date: Fri, 8 Mar 2013 18:04:35 +0100 Subject: [PATCH] [Book][ServiceContainer] Added new 2.2 feature '@@' escaping Added version note for 2.2 about the new @@ escaping strategy introduced in symfony/symfony#7307 --- book/service_container.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/book/service_container.rst b/book/service_container.rst index 9c573cfdb59..ab96cc0a486 100644 --- a/book/service_container.rst +++ b/book/service_container.rst @@ -231,6 +231,12 @@ looks up the value of each parameter and uses it in the service definition. http://symfony.com/?foo=%%s&bar=%%d +.. 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: