소스 검색

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>