8000 minor #11482 [Routing] simplify the XML schema file (xabbuh) · symfony/symfony@9b5f56c · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 9b5f56c

Browse files
committed
minor #11482 [Routing] simplify the XML schema file (xabbuh)
This PR was merged into the 2.4 branch. Discussion ---------- [Routing] simplify the XML schema file | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Conditions that are defined for certain routes are just simple strings. Thus, there is no need to use a dedicated element when xsd:string does the same (as mentioned by @Tobion in #11394). Commits ------- dbac46a [Routing] simplify the XML schema file
2 parents dde854d + dbac46a commit 9b5f56c

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/Symfony/Component/Routing/Loader/schema/routing/routing-1.0.xsd

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<xsd:element name="default" nillable="true" type="element" />
3030
<xsd:element name="requirement" type="element" />
3131
<xsd:element name="option" type="element" />
32-
<xsd:element name="condition" type="condition" />
32+
<xsd:element name="condition" type="xsd:string" />
3333
</xsd:choice>
3434
</xsd:group>
3535

@@ -62,9 +62,4 @@
6262
</xsd:extension>
6363
</xsd:simpleContent>
6464
</xsd:complexType>
65-
66-
<xsd:simpleType name="condition">
67-
<xsd:restriction base="xsd:string">
68-
</xsd:restriction>
69-
</xsd:simpleType>
7065
</xsd:schema>

0 commit comments

Comments
 (0)
0