Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bf1712d

Browse filesBrowse files
committed
use valid XML in code block
1 parent e3f229d commit bf1712d
Copy full SHA for bf1712d

File tree

Expand file treeCollapse file tree

3 files changed

+28
-4
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+28
-4
lines changed

‎book/service_container.rst

Copy file name to clipboardExpand all lines: book/service_container.rst
+12-1Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,18 @@ parameter and uses it in the service definition.
269269

270270
.. code-block:: xml
271271
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>
273284
274285
.. caution::
275286

‎components/dependency_injection/parameters.rst

Copy file name to clipboardExpand all lines: components/dependency_injection/parameters.rst
+12-1Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,18 @@ the parameter value in one place if needed.
155155
156156
.. code-block:: xml
157157
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>
159170
160171
.. code-block:: php
161172

‎components/intl.rst

Copy file name to clipboardExpand all lines: components/intl.rst
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,10 @@ code::
126126

127127
.. code-block:: json
128128
129-
"require: {
130-
"symfony/icu": "1.1.*"
129+
{
130+
"require": {
131+
"symfony/icu": "1.1.*"
132+
}
131133
}
132134
133135
Set the version to

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.