Chris@0
|
1 <?xml version="1.0" encoding="UTF-8" ?>
|
Chris@0
|
2
|
Chris@0
|
3 <xsd:schema xmlns="http://symfony.com/schema/dic/services"
|
Chris@0
|
4 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
Chris@0
|
5 targetNamespace="http://symfony.com/schema/dic/services"
|
Chris@0
|
6 elementFormDefault="qualified">
|
Chris@0
|
7
|
Chris@0
|
8 <xsd:annotation>
|
Chris@0
|
9 <xsd:documentation><![CDATA[
|
Chris@0
|
10 Symfony XML Services Schema, version 1.0
|
Chris@0
|
11 Authors: Fabien Potencier
|
Chris@0
|
12
|
Chris@0
|
13 This defines a way to describe PHP objects (services) and their
|
Chris@0
|
14 dependencies.
|
Chris@0
|
15 ]]></xsd:documentation>
|
Chris@0
|
16 </xsd:annotation>
|
Chris@0
|
17
|
Chris@0
|
18 <xsd:element name="container" type="container" />
|
Chris@0
|
19
|
Chris@0
|
20 <xsd:complexType name="container">
|
Chris@0
|
21 <xsd:annotation>
|
Chris@0
|
22 <xsd:documentation><![CDATA[
|
Chris@0
|
23 The root element of a service file.
|
Chris@0
|
24 ]]></xsd:documentation>
|
Chris@0
|
25 </xsd:annotation>
|
Chris@0
|
26 <xsd:sequence>
|
Chris@0
|
27 <xsd:group ref="foreign" />
|
Chris@0
|
28 <xsd:sequence minOccurs="0">
|
Chris@0
|
29 <xsd:element name="imports" type="imports" />
|
Chris@0
|
30 <xsd:group ref="foreign" />
|
Chris@0
|
31 </xsd:sequence>
|
Chris@0
|
32 <xsd:sequence minOccurs="0">
|
Chris@0
|
33 <xsd:element name="parameters" type="parameters" />
|
Chris@0
|
34 <xsd:group ref="foreign" />
|
Chris@0
|
35 </xsd:sequence>
|
Chris@0
|
36 <xsd:sequence minOccurs="0">
|
Chris@0
|
37 <xsd:element name="services" type="services" />
|
Chris@0
|
38 <xsd:group ref="foreign" />
|
Chris@0
|
39 </xsd:sequence>
|
Chris@0
|
40 </xsd:sequence>
|
Chris@0
|
41 </xsd:complexType>
|
Chris@0
|
42
|
Chris@0
|
43 <xsd:group name="foreign">
|
Chris@0
|
44 <xsd:sequence>
|
Chris@0
|
45 <xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" />
|
Chris@0
|
46 </xsd:sequence>
|
Chris@0
|
47 </xsd:group>
|
Chris@0
|
48
|
Chris@0
|
49 <xsd:complexType name="services">
|
Chris@0
|
50 <xsd:annotation>
|
Chris@0
|
51 <xsd:documentation><![CDATA[
|
Chris@0
|
52 Enclosing element for the definition of all services
|
Chris@0
|
53 ]]></xsd:documentation>
|
Chris@0
|
54 </xsd:annotation>
|
Chris@14
|
55 <xsd:choice maxOccurs="unbounded">
|
Chris@14
|
56 <xsd:element name="service" type="service" minOccurs="1" />
|
Chris@14
|
57 <xsd:element name="prototype" type="prototype" minOccurs="0" />
|
Chris@14
|
58 <xsd:element name="defaults" type="defaults" minOccurs="0" maxOccurs="1" />
|
Chris@14
|
59 <xsd:element name="instanceof" type="instanceof" minOccurs="0" />
|
Chris@0
|
60 </xsd:choice>
|
Chris@0
|
61 </xsd:complexType>
|
Chris@0
|
62
|
Chris@0
|
63 <xsd:complexType name="imports">
|
Chris@0
|
64 <xsd:annotation>
|
Chris@0
|
65 <xsd:documentation><![CDATA[
|
Chris@0
|
66 Enclosing element for the import elements
|
Chris@0
|
67 ]]></xsd:documentation>
|
Chris@0
|
68 </xsd:annotation>
|
Chris@0
|
69 <xsd:choice minOccurs="1" maxOccurs="unbounded">
|
Chris@0
|
70 <xsd:element name="import" type="import" />
|
Chris@0
|
71 </xsd:choice>
|
Chris@0
|
72 </xsd:complexType>
|
Chris@0
|
73
|
Chris@0
|
74 <xsd:complexType name="import">
|
Chris@0
|
75 <xsd:annotation>
|
Chris@0
|
76 <xsd:documentation><![CDATA[
|
Chris@0
|
77 Import an external resource defining other services or parameters
|
Chris@0
|
78 ]]></xsd:documentation>
|
Chris@0
|
79 </xsd:annotation>
|
Chris@0
|
80 <xsd:attribute name="resource" type="xsd:string" use="required" />
|
Chris@0
|
81 <xsd:attribute name="ignore-errors" type="boolean" />
|
Chris@14
|
82 <xsd:attribute name="type" type="xsd:string" />
|
Chris@0
|
83 </xsd:complexType>
|
Chris@0
|
84
|
Chris@0
|
85 <xsd:complexType name="callable">
|
Chris@0
|
86 <xsd:choice minOccurs="0" maxOccurs="1">
|
Chris@0
|
87 <xsd:element name="service" type="service" minOccurs="0" maxOccurs="1" />
|
Chris@0
|
88 </xsd:choice>
|
Chris@0
|
89 <xsd:attribute name="service" type="xsd:string" />
|
Chris@0
|
90 <xsd:attribute name="class" type="xsd:string" />
|
Chris@0
|
91 <xsd:attribute name="method" type="xsd:string" />
|
Chris@0
|
92 <xsd:attribute name="function" type="xsd:string" />
|
Chris@0
|
93 </xsd:complexType>
|
Chris@0
|
94
|
Chris@14
|
95 <xsd:complexType name="defaults">
|
Chris@14
|
96 <xsd:annotation>
|
Chris@14
|
97 <xsd:documentation><![CDATA[
|
Chris@14
|
98 Enclosing element for the service definitions' defaults for the current file
|
Chris@14
|
99 ]]></xsd:documentation>
|
Chris@14
|
100 </xsd:annotation>
|
Chris@14
|
101 <xsd:choice maxOccurs="unbounded">
|
Chris@14
|
102 <xsd:element name="tag" type="tag" minOccurs="0" maxOccurs="unbounded" />
|
Chris@14
|
103 <xsd:element name="bind" type="bind" minOccurs="0" maxOccurs="unbounded" />
|
Chris@14
|
104 </xsd:choice>
|
Chris@14
|
105 <xsd:attribute name="public" type="boolean" />
|
Chris@14
|
106 <xsd:attribute name="autowire" type="boolean" />
|
Chris@14
|
107 <xsd:attribute name="autoconfigure" type="boolean" />
|
Chris@14
|
108 </xsd:complexType>
|
Chris@14
|
109
|
Chris@0
|
110 <xsd:complexType name="service">
|
Chris@0
|
111 <xsd:choice maxOccurs="unbounded">
|
Chris@0
|
112 <xsd:element name="file" type="xsd:string" minOccurs="0" maxOccurs="1" />
|
Chris@0
|
113 <xsd:element name="argument" type="argument" minOccurs="0" maxOccurs="unbounded" />
|
Chris@0
|
114 <xsd:element name="configurator" type="callable" minOccurs="0" maxOccurs="1" />
|
Chris@0
|
115 <xsd:element name="factory" type="callable" minOccurs="0" maxOccurs="1" />
|
Chris@0
|
116 <xsd:element name="deprecated" type="xsd:string" minOccurs="0" maxOccurs="1" />
|
Chris@0
|
117 <xsd:element name="call" type="call" minOccurs="0" maxOccurs="unbounded" />
|
Chris@0
|
118 <xsd:element name="tag" type="tag" minOccurs="0" maxOccurs="unbounded" />
|
Chris@0
|
119 <xsd:element name="property" type="property" minOccurs="0" maxOccurs="unbounded" />
|
Chris@0
|
120 <xsd:element name="autowiring-type" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
|
Chris@14
|
121 <xsd:element name="bind" type="bind" minOccurs="0" maxOccurs="unbounded" />
|
Chris@0
|
122 </xsd:choice>
|
Chris@0
|
123 <xsd:attribute name="id" type="xsd:string" />
|
Chris@0
|
124 <xsd:attribute name="class" type="xsd:string" />
|
Chris@0
|
125 <xsd:attribute name="shared" type="boolean" />
|
Chris@0
|
126 <xsd:attribute name="public" type="boolean" />
|
Chris@0
|
127 <xsd:attribute name="synthetic" type="boolean" />
|
Chris@0
|
128 <xsd:attribute name="lazy" type="boolean" />
|
Chris@0
|
129 <xsd:attribute name="abstract" type="boolean" />
|
Chris@0
|
130 <xsd:attribute name="alias" type="xsd:string" />
|
Chris@0
|
131 <xsd:attribute name="parent" type="xsd:string" />
|
Chris@0
|
132 <xsd:attribute name="decorates" type="xsd:string" />
|
Chris@0
|
133 <xsd:attribute name="decoration-inner-name" type="xsd:string" />
|
Chris@0
|
134 <xsd:attribute name="decoration-priority" type="xsd:integer" />
|
Chris@0
|
135 <xsd:attribute name="autowire" type="boolean" />
|
Chris@14
|
136 <xsd:attribute name="autoconfigure" type="boolean" />
|
Chris@14
|
137 </xsd:complexType>
|
Chris@14
|
138
|
Chris@14
|
139 <xsd:complexType name="instanceof">
|
Chris@14
|
140 <xsd:choice maxOccurs="unbounded">
|
Chris@14
|
141 <xsd:element name="configurator" type="callable" minOccurs="0" maxOccurs="1" />
|
Chris@14
|
142 <xsd:element name="call" type="call" minOccurs="0" maxOccurs="unbounded" />
|
Chris@14
|
143 <xsd:element name="tag" type="tag" minOccurs="0" maxOccurs="unbounded" />
|
Chris@14
|
144 <xsd:element name="property" type="property" minOccurs="0" maxOccurs="unbounded" />
|
Chris@14
|
145 </xsd:choice>
|
Chris@14
|
146 <xsd:attribute name="id" type="xsd:string" use="required" />
|
Chris@14
|
147 <xsd:attribute name="shared" type="boolean" />
|
Chris@14
|
148 <xsd:attribute name="public" type="boolean" />
|
Chris@14
|
149 <xsd:attribute name="lazy" type="boolean" />
|
Chris@14
|
150 <xsd:attribute name="autowire" type="boolean" />
|
Chris@14
|
151 <xsd:attribute name="autoconfigure" type="boolean" />
|
Chris@14
|
152 </xsd:complexType>
|
Chris@14
|
153
|
Chris@14
|
154 <xsd:complexType name="prototype">
|
Chris@14
|
155 <xsd:choice maxOccurs="unbounded">
|
Chris@14
|
156 <xsd:element name="argument" type="argument" minOccurs="0" maxOccurs="unbounded" />
|
Chris@14
|
157 <xsd:element name="configurator" type="callable" minOccurs="0" maxOccurs="1" />
|
Chris@14
|
158 <xsd:element name="factory" type="callable" minOccurs="0" maxOccurs="1" />
|
Chris@14
|
159 <xsd:element name="deprecated" type="xsd:string" minOccurs="0" maxOccurs="1" />
|
Chris@14
|
160 <xsd:element name="call" type="call" minOccurs="0" maxOccurs="unbounded" />
|
Chris@14
|
161 <xsd:element name="tag" type="tag" minOccurs="0" maxOccurs="unbounded" />
|
Chris@14
|
162 <xsd:element name="property" type="property" minOccurs="0" maxOccurs="unbounded" />
|
Chris@14
|
163 <xsd:element name="bind" type="bind" minOccurs="0" maxOccurs="unbounded" />
|
Chris@14
|
164 </xsd:choice>
|
Chris@14
|
165 <xsd:attribute name="namespace" type="xsd:string" use="required" />
|
Chris@14
|
166 <xsd:attribute name="resource" type="xsd:string" use="required" />
|
Chris@14
|
167 <xsd:attribute name="exclude" type="xsd:string" />
|
Chris@14
|
168 <xsd:attribute name="shared" type="boolean" />
|
Chris@14
|
169 <xsd:attribute name="public" type="boolean" />
|
Chris@14
|
170 <xsd:attribute name="lazy" type="boolean" />
|
Chris@14
|
171 <xsd:attribute name="abstract" type="boolean" />
|
Chris@14
|
172 <xsd:attribute name="parent" type="xsd:string" />
|
Chris@14
|
173 <xsd:attribute name="autowire" type="boolean" />
|
Chris@14
|
174 <xsd:attribute name="autoconfigure" type="boolean" />
|
Chris@0
|
175 </xsd:complexType>
|
Chris@0
|
176
|
Chris@0
|
177 <xsd:complexType name="tag">
|
Chris@0
|
178 <xsd:attribute name="name" type="xsd:string" use="required" />
|
Chris@0
|
179 <xsd:anyAttribute namespace="##any" processContents="lax" />
|
Chris@0
|
180 </xsd:complexType>
|
Chris@0
|
181
|
Chris@0
|
182 <xsd:complexType name="parameters">
|
Chris@0
|
183 <xsd:choice minOccurs="1" maxOccurs="unbounded">
|
Chris@0
|
184 <xsd:element name="parameter" type="parameter" />
|
Chris@0
|
185 </xsd:choice>
|
Chris@0
|
186 <xsd:attribute name="type" type="parameter_type" />
|
Chris@0
|
187 <xsd:attribute name="key" type="xsd:string" />
|
Chris@0
|
188 </xsd:complexType>
|
Chris@0
|
189
|
Chris@0
|
190 <xsd:complexType name="parameter" mixed="true">
|
Chris@0
|
191 <xsd:choice minOccurs="0" maxOccurs="unbounded">
|
Chris@0
|
192 <xsd:element name="parameter" type="parameter" />
|
Chris@0
|
193 </xsd:choice>
|
Chris@0
|
194 <xsd:attribute name="type" type="parameter_type" />
|
Chris@0
|
195 <xsd:attribute name="id" type="xsd:string" />
|
Chris@0
|
196 <xsd:attribute name="key" type="xsd:string" />
|
Chris@0
|
197 <xsd:attribute name="on-invalid" type="invalid_sequence" />
|
Chris@0
|
198 </xsd:complexType>
|
Chris@0
|
199
|
Chris@0
|
200 <xsd:complexType name="property" mixed="true">
|
Chris@0
|
201 <xsd:choice minOccurs="0">
|
Chris@0
|
202 <xsd:element name="property" type="property" maxOccurs="unbounded" />
|
Chris@0
|
203 <xsd:element name="service" type="service" />
|
Chris@0
|
204 </xsd:choice>
|
Chris@0
|
205 <xsd:attribute name="type" type="argument_type" />
|
Chris@0
|
206 <xsd:attribute name="id" type="xsd:string" />
|
Chris@0
|
207 <xsd:attribute name="key" type="xsd:string" />
|
Chris@0
|
208 <xsd:attribute name="name" type="xsd:string" />
|
Chris@0
|
209 <xsd:attribute name="on-invalid" type="invalid_sequence" />
|
Chris@0
|
210 <xsd:attribute name="strict" type="boolean" />
|
Chris@14
|
211 <xsd:attribute name="tag" type="xsd:string" />
|
Chris@14
|
212 </xsd:complexType>
|
Chris@14
|
213
|
Chris@14
|
214 <xsd:complexType name="bind" mixed="true">
|
Chris@14
|
215 <xsd:choice maxOccurs="unbounded">
|
Chris@14
|
216 <xsd:element name="bind" type="argument" minOccurs="0" maxOccurs="unbounded" />
|
Chris@14
|
217 <xsd:element name="service" type="service" />
|
Chris@14
|
218 </xsd:choice>
|
Chris@14
|
219 <xsd:attribute name="type" type="argument_type" />
|
Chris@14
|
220 <xsd:attribute name="id" type="xsd:string" />
|
Chris@14
|
221 <xsd:attribute name="key" type="xsd:string" use="required" />
|
Chris@14
|
222 <xsd:attribute name="on-invalid" type="invalid_sequence" />
|
Chris@14
|
223 <xsd:attribute name="method" type="xsd:string" />
|
Chris@0
|
224 </xsd:complexType>
|
Chris@0
|
225
|
Chris@0
|
226 <xsd:complexType name="argument" mixed="true">
|
Chris@0
|
227 <xsd:choice minOccurs="0">
|
Chris@0
|
228 <xsd:element name="argument" type="argument" maxOccurs="unbounded" />
|
Chris@0
|
229 <xsd:element name="service" type="service" />
|
Chris@0
|
230 </xsd:choice>
|
Chris@0
|
231 <xsd:attribute name="type" type="argument_type" />
|
Chris@0
|
232 <xsd:attribute name="id" type="xsd:string" />
|
Chris@0
|
233 <xsd:attribute name="key" type="xsd:string" />
|
Chris@0
|
234 <xsd:attribute name="index" type="xsd:integer" />
|
Chris@0
|
235 <xsd:attribute name="on-invalid" type="invalid_sequence" />
|
Chris@0
|
236 <xsd:attribute name="strict" type="boolean" />
|
Chris@14
|
237 <xsd:attribute name="tag" type="xsd:string" />
|
Chris@0
|
238 </xsd:complexType>
|
Chris@0
|
239
|
Chris@0
|
240 <xsd:complexType name="call">
|
Chris@0
|
241 <xsd:choice minOccurs="0">
|
Chris@0
|
242 <xsd:element name="argument" type="argument" maxOccurs="unbounded" />
|
Chris@0
|
243 </xsd:choice>
|
Chris@0
|
244 <xsd:attribute name="method" type="xsd:string" />
|
Chris@0
|
245 </xsd:complexType>
|
Chris@0
|
246
|
Chris@0
|
247 <xsd:simpleType name="parameter_type">
|
Chris@0
|
248 <xsd:restriction base="xsd:string">
|
Chris@0
|
249 <xsd:enumeration value="collection" />
|
Chris@0
|
250 <xsd:enumeration value="string" />
|
Chris@0
|
251 <xsd:enumeration value="constant" />
|
Chris@0
|
252 </xsd:restriction>
|
Chris@0
|
253 </xsd:simpleType>
|
Chris@0
|
254
|
Chris@0
|
255 <xsd:simpleType name="argument_type">
|
Chris@0
|
256 <xsd:restriction base="xsd:string">
|
Chris@0
|
257 <xsd:enumeration value="collection" />
|
Chris@0
|
258 <xsd:enumeration value="service" />
|
Chris@0
|
259 <xsd:enumeration value="expression" />
|
Chris@0
|
260 <xsd:enumeration value="string" />
|
Chris@0
|
261 <xsd:enumeration value="constant" />
|
Chris@14
|
262 <xsd:enumeration value="iterator" />
|
Chris@14
|
263 <xsd:enumeration value="tagged" />
|
Chris@0
|
264 </xsd:restriction>
|
Chris@0
|
265 </xsd:simpleType>
|
Chris@0
|
266
|
Chris@0
|
267 <xsd:simpleType name="invalid_sequence">
|
Chris@0
|
268 <xsd:restriction base="xsd:string">
|
Chris@0
|
269 <xsd:enumeration value="null" />
|
Chris@0
|
270 <xsd:enumeration value="ignore" />
|
Chris@0
|
271 <xsd:enumeration value="exception" />
|
Chris@14
|
272 <xsd:enumeration value="ignore_uninitialized" />
|
Chris@0
|
273 </xsd:restriction>
|
Chris@0
|
274 </xsd:simpleType>
|
Chris@0
|
275
|
Chris@0
|
276 <xsd:simpleType name="boolean">
|
Chris@0
|
277 <xsd:restriction base="xsd:string">
|
Chris@0
|
278 <xsd:pattern value="(%.+%|true|false)" />
|
Chris@0
|
279 </xsd:restriction>
|
Chris@0
|
280 </xsd:simpleType>
|
Chris@0
|
281 </xsd:schema>
|