8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cd1cff1 + aae5041 commit b62cecaCopy full SHA for b62ceca
book/service_container.rst
@@ -222,6 +222,12 @@ The end result is exactly the same as before - the difference is only in
222
to look for parameters with those names. When the container is built, it
223
looks up the value of each parameter and uses it in the service definition.
224
225
+.. note::
226
+
227
+ The percent sign inside a parameter or argument, as part of the string, must
228
+ be escaped with another percent sign::
229
+ <argument type="string">http://symfony.com/?foo=%%s&bar=%%d</argument>
230
231
The purpose of parameters is to feed information into services. Of course
232
there was nothing wrong with defining the service without using any parameters.
233
Parameters, however, have several advantages:
0 commit comments