Bläddra i källkod

Allowing a routes node to be specified without any child import or route nodes.

This is not really a bug or a big issue, but if you need to temporarily empty a routes node, Symfony shouldn't care - it's not an actual validation failure (a routes node still makes sense without an route or import children).
Ryan Weaver 14 år sedan
förälder
incheckning
84a60d74d1
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      src/Symfony/Component/Routing/Loader/schema/routing/routing-1.0.xsd

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

@@ -8,7 +8,7 @@
   <xsd:element name="routes" type="routes" />
 
   <xsd:complexType name="routes">
-    <xsd:choice maxOccurs="unbounded">
+    <xsd:choice maxOccurs="unbounded" minOccurs="0">
       <xsd:element name="import" type="import" />
       <xsd:element name="route" type="route" />
     </xsd:choice>