Skip to content

Commit e917a18

Browse files
ocrampete16javiereguiluz
authored andcommitted
Add XML schema location for container configuration
At first I assumed this was omitted to keep the code snippet more concise and easier to comprehend. But then again, the `xsi` namespace already in place would be redundant. If the intention was indeed to keep things more simple, I would suggest removing the `xsi` namespace entirely.
1 parent 7ea412c commit e917a18

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

routing.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1949,7 +1949,9 @@ generate URLs. This context can be configured globally for all commands:
19491949
<!-- config/services.xml -->
19501950
<?xml version="1.0" encoding="UTF-8"?>
19511951
<container xmlns="http://symfony.com/schema/dic/services"
1952-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
1952+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1953+
xsi:schemaLocation="http://symfony.com/schema/dic/services
1954+
https://symfony.com/schema/dic/services/services-1.0.xsd">
19531955
19541956
<parameters>
19551957
<parameter key="router.request_context.host">example.org</parameter>
@@ -2062,7 +2064,9 @@ method) or globally with these configuration parameters:
20622064
<!-- config/services.xml -->
20632065
<?xml version="1.0" encoding="UTF-8"?>
20642066
<container xmlns="http://symfony.com/schema/dic/services"
2065-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
2067+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2068+
xsi:schemaLocation="http://symfony.com/schema/dic/services
2069+
https://symfony.com/schema/dic/services/services-1.0.xsd">
20662070
20672071
<parameters>
20682072
<parameter key="router.request_context.scheme">https</parameter>

0 commit comments

Comments
 (0)