File tree 3 files changed +28
-4
lines changed
3 files changed +28
-4
lines changed Original file line number Diff line number Diff line change @@ -269,7 +269,18 @@ parameter and uses it in the service definition.
269
269
270
270
.. code-block :: xml
271
271
272
- <argument type =" string" >http://symfony.com/?foo=%%s& bar=%%d</argument >
272
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
273
+ <container xmlns =" http://symfony.com/schema/dic/services"
274
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
275
+ xsi : schemaLocation =" http://symfony.com/schema/dic/services
276
+ http://symfony.com/schema/dic/services/services-1.0.xsd" >
277
+
278
+ <services >
279
+ <service id =" app.foo" class =" AppBundle\Foo" >
280
+ <argument type =" string" ><![CDATA[ http://symfony.com/?foo=%%s&bar=%%d]]> </argument >
281
+ </service >
282
+ </services >
283
+ </container >
273
284
274
285
.. caution ::
275
286
Original file line number Diff line number Diff line change @@ -155,7 +155,18 @@ the parameter value in one place if needed.
155
155
156
156
.. code-block :: xml
157
157
158
- <argument >http://symfony.com/?foo=%%s& bar=%%d</argument >
158
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
159
+ <container xmlns =" http://symfony.com/schema/dic/services"
160
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
161
+ xsi : schemaLocation =" http://symfony.com/schema/dic/services
162
+ http://symfony.com/schema/dic/services/services-1.0.xsd" >
163
+
164
+ <services >
165
+ <service id =" app.foo" class =" AppBundle\Foo" >
166
+ <argument type =" string" ><![CDATA[ http://symfony.com/?foo=%%s&bar=%%d]]> </argument >
167
+ </service >
168
+ </services >
169
+ </container >
159
170
160
171
.. code-block :: php
161
172
Original file line number Diff line number Diff line change @@ -126,8 +126,10 @@ code::
126
126
127
127
.. code-block :: json
128
128
129
- "require: {
130
- "symfony/icu" : " 1.1.*"
129
+ {
130
+ "require" : {
131
+ "symfony/icu" : " 1.1.*"
132
+ }
131
133
}
132
134
133
135
Set the version to
You can’t perform that action at this time.
0 commit comments