Security update for Core, with self-updated composer
[yaffs-website] / vendor / symfony / dependency-injection / Loader / schema / dic / services / services-1.0.xsd
1 <?xml version="1.0" encoding="UTF-8" ?>
2
3 <xsd:schema xmlns="http://symfony.com/schema/dic/services"
4      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
5      targetNamespace="http://symfony.com/schema/dic/services"
6      elementFormDefault="qualified">
7
8   <xsd:annotation>
9     <xsd:documentation><![CDATA[
10       Symfony XML Services Schema, version 1.0
11       Authors: Fabien Potencier
12
13       This defines a way to describe PHP objects (services) and their
14       dependencies.
15     ]]></xsd:documentation>
16   </xsd:annotation>
17
18   <xsd:element name="container" type="container" />
19
20   <xsd:complexType name="container">
21     <xsd:annotation>
22       <xsd:documentation><![CDATA[
23         The root element of a service file.
24       ]]></xsd:documentation>
25     </xsd:annotation>
26     <xsd:sequence>
27       <xsd:group ref="foreign" />
28       <xsd:sequence minOccurs="0">
29         <xsd:element name="imports" type="imports" />
30         <xsd:group ref="foreign" />
31       </xsd:sequence>
32       <xsd:sequence minOccurs="0">
33         <xsd:element name="parameters" type="parameters" />
34         <xsd:group ref="foreign" />
35       </xsd:sequence>
36       <xsd:sequence minOccurs="0">
37         <xsd:element name="services" type="services" />
38         <xsd:group ref="foreign" />
39       </xsd:sequence>
40     </xsd:sequence>
41   </xsd:complexType>
42
43   <xsd:group name="foreign">
44     <xsd:sequence>
45       <xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" />
46     </xsd:sequence>
47   </xsd:group>
48
49   <xsd:complexType name="services">
50     <xsd:annotation>
51       <xsd:documentation><![CDATA[
52         Enclosing element for the definition of all services
53       ]]></xsd:documentation>
54     </xsd:annotation>
55     <xsd:choice minOccurs="1" maxOccurs="unbounded">
56       <xsd:element name="service" type="service" />
57     </xsd:choice>
58   </xsd:complexType>
59
60   <xsd:complexType name="imports">
61     <xsd:annotation>
62       <xsd:documentation><![CDATA[
63         Enclosing element for the import elements
64       ]]></xsd:documentation>
65     </xsd:annotation>
66     <xsd:choice minOccurs="1" maxOccurs="unbounded">
67       <xsd:element name="import" type="import" />
68     </xsd:choice>
69   </xsd:complexType>
70
71   <xsd:complexType name="import">
72     <xsd:annotation>
73       <xsd:documentation><![CDATA[
74         Import an external resource defining other services or parameters
75       ]]></xsd:documentation>
76     </xsd:annotation>
77     <xsd:attribute name="resource" type="xsd:string" use="required" />
78     <xsd:attribute name="ignore-errors" type="boolean" />
79   </xsd:complexType>
80
81   <xsd:complexType name="callable">
82     <xsd:choice minOccurs="0" maxOccurs="1">
83       <xsd:element name="service" type="service" minOccurs="0" maxOccurs="1" />
84     </xsd:choice>
85     <xsd:attribute name="id" type="xsd:string" />
86     <xsd:attribute name="service" type="xsd:string" />
87     <xsd:attribute name="class" type="xsd:string" />
88     <xsd:attribute name="method" type="xsd:string" />
89     <xsd:attribute name="function" type="xsd:string" />
90   </xsd:complexType>
91
92   <xsd:complexType name="service">
93     <xsd:choice maxOccurs="unbounded">
94       <xsd:element name="file" type="xsd:string" minOccurs="0" maxOccurs="1" />
95       <xsd:element name="argument" type="argument" minOccurs="0" maxOccurs="unbounded" />
96       <xsd:element name="configurator" type="callable" minOccurs="0" maxOccurs="1" />
97       <xsd:element name="factory" type="callable" minOccurs="0" maxOccurs="1" />
98       <xsd:element name="deprecated" type="xsd:string" minOccurs="0" maxOccurs="1" />
99       <xsd:element name="call" type="call" minOccurs="0" maxOccurs="unbounded" />
100       <xsd:element name="tag" type="tag" minOccurs="0" maxOccurs="unbounded" />
101       <xsd:element name="property" type="property" minOccurs="0" maxOccurs="unbounded" />
102       <xsd:element name="autowiring-type" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
103     </xsd:choice>
104     <xsd:attribute name="id" type="xsd:string" />
105     <xsd:attribute name="class" type="xsd:string" />
106     <xsd:attribute name="shared" type="boolean" />
107     <xsd:attribute name="public" type="boolean" />
108     <xsd:attribute name="synthetic" type="boolean" />
109     <xsd:attribute name="lazy" type="boolean" />
110     <xsd:attribute name="abstract" type="boolean" />
111     <xsd:attribute name="alias" type="xsd:string" />
112     <xsd:attribute name="parent" type="xsd:string" />
113     <xsd:attribute name="decorates" type="xsd:string" />
114     <xsd:attribute name="decoration-inner-name" type="xsd:string" />
115     <xsd:attribute name="decoration-priority" type="xsd:integer" />
116     <xsd:attribute name="autowire" type="boolean" />
117   </xsd:complexType>
118
119   <xsd:complexType name="tag">
120     <xsd:attribute name="name" type="xsd:string" use="required" />
121     <xsd:anyAttribute namespace="##any" processContents="lax" />
122   </xsd:complexType>
123
124   <xsd:complexType name="parameters">
125     <xsd:choice minOccurs="1" maxOccurs="unbounded">
126       <xsd:element name="parameter" type="parameter" />
127     </xsd:choice>
128     <xsd:attribute name="type" type="parameter_type" />
129     <xsd:attribute name="key" type="xsd:string" />
130   </xsd:complexType>
131
132   <xsd:complexType name="parameter" mixed="true">
133     <xsd:choice minOccurs="0" maxOccurs="unbounded">
134       <xsd:element name="parameter" type="parameter" />
135     </xsd:choice>
136     <xsd:attribute name="type" type="parameter_type" />
137     <xsd:attribute name="id" type="xsd:string" />
138     <xsd:attribute name="key" type="xsd:string" />
139     <xsd:attribute name="on-invalid" type="invalid_sequence" />
140   </xsd:complexType>
141
142   <xsd:complexType name="property" mixed="true">
143     <xsd:choice minOccurs="0">
144       <xsd:element name="property" type="property" maxOccurs="unbounded" />
145       <xsd:element name="service" type="service" />
146     </xsd:choice>
147     <xsd:attribute name="type" type="argument_type" />
148     <xsd:attribute name="id" type="xsd:string" />
149     <xsd:attribute name="key" type="xsd:string" />
150     <xsd:attribute name="name" type="xsd:string" />
151     <xsd:attribute name="on-invalid" type="invalid_sequence" />
152     <xsd:attribute name="strict" type="boolean" />
153   </xsd:complexType>
154
155   <xsd:complexType name="argument" mixed="true">
156     <xsd:choice minOccurs="0">
157       <xsd:element name="argument" type="argument" maxOccurs="unbounded" />
158       <xsd:element name="service" type="service" />
159     </xsd:choice>
160     <xsd:attribute name="type" type="argument_type" />
161     <xsd:attribute name="id" type="xsd:string" />
162     <xsd:attribute name="key" type="xsd:string" />
163     <xsd:attribute name="index" type="xsd:integer" />
164     <xsd:attribute name="on-invalid" type="invalid_sequence" />
165     <xsd:attribute name="strict" type="boolean" />
166   </xsd:complexType>
167
168   <xsd:complexType name="call">
169     <xsd:choice minOccurs="0">
170       <xsd:element name="argument" type="argument" maxOccurs="unbounded" />
171     </xsd:choice>
172     <xsd:attribute name="method" type="xsd:string" />
173   </xsd:complexType>
174
175   <xsd:simpleType name="parameter_type">
176     <xsd:restriction base="xsd:string">
177       <xsd:enumeration value="collection" />
178       <xsd:enumeration value="string" />
179       <xsd:enumeration value="constant" />
180     </xsd:restriction>
181   </xsd:simpleType>
182
183   <xsd:simpleType name="argument_type">
184     <xsd:restriction base="xsd:string">
185       <xsd:enumeration value="collection" />
186       <xsd:enumeration value="service" />
187       <xsd:enumeration value="expression" />
188       <xsd:enumeration value="string" />
189       <xsd:enumeration value="constant" />
190     </xsd:restriction>
191   </xsd:simpleType>
192
193   <xsd:simpleType name="invalid_sequence">
194     <xsd:restriction base="xsd:string">
195       <xsd:enumeration value="null" />
196       <xsd:enumeration value="ignore" />
197       <xsd:enumeration value="exception" />
198     </xsd:restriction>
199   </xsd:simpleType>
200
201   <xsd:simpleType name="boolean">
202     <xsd:restriction base="xsd:string">
203       <xsd:pattern value="(%.+%|true|false)" />
204     </xsd:restriction>
205   </xsd:simpleType>
206 </xsd:schema>