Skip to content

Commit bf2e579

Browse files
committed
minor #13210 Add XML schema location for container configuration (ocrampete16)
This PR was submitted for the 5.0 branch but it was merged into the 4.4 branch instead (closes #13210). Discussion ---------- 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. <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- e917a18 Add XML schema location for container configuration
2 parents 7ea412c + e917a18 commit bf2e579

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)