8000 [Routing] simplify the XML schema file · symfony/symfony@dbac46a · GitHub
[go: up one dir, main page]

Skip to content

Commit dbac46a

Browse files
committed
[Routing] simplify the XML schema file
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.
1 parent dde854d commit dbac46a

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