Skip to content

Commit a82c559

Browse files
authored
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 c5fc086 commit a82c559

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
@@ -1928,7 +1928,9 @@ generate URLs. This context can be configured globally for all commands:
19281928
<!-- config/services.xml -->
19291929
<?xml version="1.0" encoding="UTF-8"?>
19301930
<container xmlns="http://symfony.com/schema/dic/services"
1931-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
1931+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1932+
xsi:schemaLocation="http://symfony.com/schema/dic/services
1933+
https://symfony.com/schema/dic/services/services-1.0.xsd">
19321934
19331935
<parameters>
19341936
<parameter key="router.request_context.host">example.org</parameter>
@@ -2041,7 +2043,9 @@ method) or globally with these configuration parameters:
20412043
<!-- config/services.xml -->
20422044
<?xml version="1.0" encoding="UTF-8"?>
20432045
<container xmlns="http://symfony.com/schema/dic/services"
2044-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
2046+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2047+
xsi:schemaLocation="http://symfony.com/schema/dic/services
2048+
https://symfony.com/schema/dic/services/services-1.0.xsd">
20452049
20462050
<parameters>
20472051
<parameter key="router.request_context.scheme">https</parameter>

0 commit comments

Comments
 (0)