Skip to content

Commit 7f94546

Browse files
committed
cleanup configuration xml schema
1 parent 7c429e6 commit 7f94546

File tree

1 file changed

+27
-19
lines changed

1 file changed

+27
-19
lines changed

Resources/config/schema/routing-1.0.xsd

Lines changed: 27 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,38 +12,33 @@
1212
<xsd:element name="chain" type="chain" minOccurs="0" />
1313
<xsd:element name="dynamic" type="dynamic" minOccurs="0" />
1414
</xsd:sequence>
15-
16-
<xsd:attribute name="use-sonata-admin" type="use_sonata_admin" />
17-
<xsd:attribute name="content-basepath" type="xsd:string" />
18-
<xsd:attribute name="route-basepath" type="xsd:string" />
1915
</xsd:complexType>
2016

2117
<xsd:complexType name="chain">
2218
<xsd:sequence>
2319
<xsd:element name="router-by-id" type="by_id" maxOccurs="unbounded" />
2420
</xsd:sequence>
2521

26-
<xsd:attribute name="replace-symfony-router" type="boolean" />
22+
<xsd:attribute name="replace-symfony-router" type="xsd:boolean" />
2723
</xsd:complexType>
2824

2925
<xsd:complexType name="dynamic">
3026
<xsd:sequence>
3127
<xsd:element name="controller-by-type" type="controller_by_type" minOccurs="0" maxOccurs="unbounded" />
3228
<xsd:element name="controller-by-class" type="controller_by_class" minOccurs="0" maxOccurs="unbounded" />
3329
<xsd:element name="template-by-class" type="template_by_class" minOccurs="0" maxOccurs="unbounded" />
34-
30+
<xsd:element name="persistence" type="persistence" minOccurs="0"/>
3531
<xsd:element name="route-filter-by-id" type="by_id" minOccurs="0" maxOccurs="unbounded" />
3632
<xsd:element name="locale" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
3733
</xsd:sequence>
3834

39-
<xsd:attribute name="enabled" type="boolean" />
35+
<xsd:attribute name="enabled" type="xsd:boolean" />
36+
<xsd:attribute name="route-collection-limit" type="xsd:integer" />
4037
<xsd:attribute name="generic-controller" type="xsd:string" />
41-
<xsd:attribute name="manager-registery" type="xsd:string" />
42-
<xsd:attribute name="manager-name" type="xsd:string" />
38+
<xsd:attribute name="default-controller" type="xsd:string" />
4339
<xsd:attribute name="uri-filter-regexp" type="xsd:string" />
4440
<xsd:attribute name="route-provider-service-id" type="xsd:string" />
4541
<xsd:attribute name="content-repository-service-id" type="xsd:string" />
46-
<xsd:attribute name="routing-repositoryroot" type="xsd:string" />
4742
</xsd:complexType>
4843

4944
<xsd:complexType name="controller_by_type">
@@ -65,11 +60,31 @@
6560
<xsd:complexType name="template_by_class">
6661
<xsd:simpleContent>
6762
<xsd:extension base="xsd:string">
68-
<xsd:attribute name="alias" type="xsd:string" />
63+
<xsd:attribute name="class" type="xsd:string" />
6964
</xsd:extension>
7065
</xsd:simpleContent>
7166
</xsd:complexType>
7267

68+
<xsd:complexType name="persistence">
69+
<xsd:sequence>
70+
<xsd:element name="phpcr" type="phpcr" minOccurs="0"/>
71+
<xsd:element name="orm" type="orm" minOccurs="0"/>
72+
</xsd:sequence>
73+
</xsd:complexType>
74+
75+
<xsd:complexType name="phpcr">
76+
<xsd:attribute name="enabled" type="xsd:boolean" />
77+
<xsd:attribute name="manager-name" type="xsd:string" />
78+
<xsd:attribute name="route-basepath" type="xsd:string" />
79+
<xsd:attribute name="content-basepath" type="xsd:string" />
80+
<xsd:attribute name="use-sonata-admin" type="enable_auto" />
81+
</xsd:complexType>
82+
83+
<xsd:complexType name="orm">
84+
<xsd:attribute name="enabled" type="xsd:boolean" />
85+
<xsd:attribute name="manager-name" type="xsd:string" />
86+
</xsd:complexType>
87+
7388
<xsd:complexType name="by_id">
7489
<xsd:simpleContent>
7590
<xsd:extension base="xsd:string">
@@ -78,14 +93,7 @@
7893
</xsd:simpleContent>
7994
</xsd:complexType>
8095

81-
<xsd:simpleType name="boolean">
82-
<xsd:restriction base="xsd:string">
83-
<xsd:enumeration value="true" />
84-
<xsd:enumeration value="false" />
85-
</xsd:restriction>
86-
</xsd:simpleType>
87-
88-
<xsd:simpleType name="use_sonata_admin">
96+
<xsd:simpleType name="enable_auto">
8997
<xsd:restriction base="xsd:string">
9098
<xsd:enumeration value="true" />
9199
<xsd:enumeration value="false" />

0 commit comments

Comments
 (0)