فهرست منبع

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 سال پیش
والد
کامیت
84a60d74d1
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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>