annotate vendor/symfony/dependency-injection/Loader/schema/dic/services/services-1.0.xsd @ 2:92f882872392

Trusted hosts, + remove migration modules
author Chris Cannam
date Tue, 05 Dec 2017 09:26:43 +0000
parents 4c8ae668cc8c
children 1fec387a4317
rev   line source
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@0 55 <xsd:choice minOccurs="1" maxOccurs="unbounded">
Chris@0 56 <xsd:element name="service" type="service" />
Chris@0 57 </xsd:choice>
Chris@0 58 </xsd:complexType>
Chris@0 59
Chris@0 60 <xsd:complexType name="imports">
Chris@0 61 <xsd:annotation>
Chris@0 62 <xsd:documentation><![CDATA[
Chris@0 63 Enclosing element for the import elements
Chris@0 64 ]]></xsd:documentation>
Chris@0 65 </xsd:annotation>
Chris@0 66 <xsd:choice minOccurs="1" maxOccurs="unbounded">
Chris@0 67 <xsd:element name="import" type="import" />
Chris@0 68 </xsd:choice>
Chris@0 69 </xsd:complexType>
Chris@0 70
Chris@0 71 <xsd:complexType name="import">
Chris@0 72 <xsd:annotation>
Chris@0 73 <xsd:documentation><![CDATA[
Chris@0 74 Import an external resource defining other services or parameters
Chris@0 75 ]]></xsd:documentation>
Chris@0 76 </xsd:annotation>
Chris@0 77 <xsd:attribute name="resource" type="xsd:string" use="required" />
Chris@0 78 <xsd:attribute name="ignore-errors" type="boolean" />
Chris@0 79 </xsd:complexType>
Chris@0 80
Chris@0 81 <xsd:complexType name="callable">
Chris@0 82 <xsd:choice minOccurs="0" maxOccurs="1">
Chris@0 83 <xsd:element name="service" type="service" minOccurs="0" maxOccurs="1" />
Chris@0 84 </xsd:choice>
Chris@0 85 <xsd:attribute name="id" type="xsd:string" />
Chris@0 86 <xsd:attribute name="service" type="xsd:string" />
Chris@0 87 <xsd:attribute name="class" type="xsd:string" />
Chris@0 88 <xsd:attribute name="method" type="xsd:string" />
Chris@0 89 <xsd:attribute name="function" type="xsd:string" />
Chris@0 90 </xsd:complexType>
Chris@0 91
Chris@0 92 <xsd:complexType name="service">
Chris@0 93 <xsd:choice maxOccurs="unbounded">
Chris@0 94 <xsd:element name="file" type="xsd:string" minOccurs="0" maxOccurs="1" />
Chris@0 95 <xsd:element name="argument" type="argument" minOccurs="0" maxOccurs="unbounded" />
Chris@0 96 <xsd:element name="configurator" type="callable" minOccurs="0" maxOccurs="1" />
Chris@0 97 <xsd:element name="factory" type="callable" minOccurs="0" maxOccurs="1" />
Chris@0 98 <xsd:element name="deprecated" type="xsd:string" minOccurs="0" maxOccurs="1" />
Chris@0 99 <xsd:element name="call" type="call" minOccurs="0" maxOccurs="unbounded" />
Chris@0 100 <xsd:element name="tag" type="tag" minOccurs="0" maxOccurs="unbounded" />
Chris@0 101 <xsd:element name="property" type="property" minOccurs="0" maxOccurs="unbounded" />
Chris@0 102 <xsd:element name="autowiring-type" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
Chris@0 103 </xsd:choice>
Chris@0 104 <xsd:attribute name="id" type="xsd:string" />
Chris@0 105 <xsd:attribute name="class" type="xsd:string" />
Chris@0 106 <xsd:attribute name="shared" type="boolean" />
Chris@0 107 <xsd:attribute name="public" type="boolean" />
Chris@0 108 <xsd:attribute name="synthetic" type="boolean" />
Chris@0 109 <xsd:attribute name="lazy" type="boolean" />
Chris@0 110 <xsd:attribute name="abstract" type="boolean" />
Chris@0 111 <xsd:attribute name="alias" type="xsd:string" />
Chris@0 112 <xsd:attribute name="parent" type="xsd:string" />
Chris@0 113 <xsd:attribute name="decorates" type="xsd:string" />
Chris@0 114 <xsd:attribute name="decoration-inner-name" type="xsd:string" />
Chris@0 115 <xsd:attribute name="decoration-priority" type="xsd:integer" />
Chris@0 116 <xsd:attribute name="autowire" type="boolean" />
Chris@0 117 </xsd:complexType>
Chris@0 118
Chris@0 119 <xsd:complexType name="tag">
Chris@0 120 <xsd:attribute name="name" type="xsd:string" use="required" />
Chris@0 121 <xsd:anyAttribute namespace="##any" processContents="lax" />
Chris@0 122 </xsd:complexType>
Chris@0 123
Chris@0 124 <xsd:complexType name="parameters">
Chris@0 125 <xsd:choice minOccurs="1" maxOccurs="unbounded">
Chris@0 126 <xsd:element name="parameter" type="parameter" />
Chris@0 127 </xsd:choice>
Chris@0 128 <xsd:attribute name="type" type="parameter_type" />
Chris@0 129 <xsd:attribute name="key" type="xsd:string" />
Chris@0 130 </xsd:complexType>
Chris@0 131
Chris@0 132 <xsd:complexType name="parameter" mixed="true">
Chris@0 133 <xsd:choice minOccurs="0" maxOccurs="unbounded">
Chris@0 134 <xsd:element name="parameter" type="parameter" />
Chris@0 135 </xsd:choice>
Chris@0 136 <xsd:attribute name="type" type="parameter_type" />
Chris@0 137 <xsd:attribute name="id" type="xsd:string" />
Chris@0 138 <xsd:attribute name="key" type="xsd:string" />
Chris@0 139 <xsd:attribute name="on-invalid" type="invalid_sequence" />
Chris@0 140 </xsd:complexType>
Chris@0 141
Chris@0 142 <xsd:complexType name="property" mixed="true">
Chris@0 143 <xsd:choice minOccurs="0">
Chris@0 144 <xsd:element name="property" type="property" maxOccurs="unbounded" />
Chris@0 145 <xsd:element name="service" type="service" />
Chris@0 146 </xsd:choice>
Chris@0 147 <xsd:attribute name="type" type="argument_type" />
Chris@0 148 <xsd:attribute name="id" type="xsd:string" />
Chris@0 149 <xsd:attribute name="key" type="xsd:string" />
Chris@0 150 <xsd:attribute name="name" type="xsd:string" />
Chris@0 151 <xsd:attribute name="on-invalid" type="invalid_sequence" />
Chris@0 152 <xsd:attribute name="strict" type="boolean" />
Chris@0 153 </xsd:complexType>
Chris@0 154
Chris@0 155 <xsd:complexType name="argument" mixed="true">
Chris@0 156 <xsd:choice minOccurs="0">
Chris@0 157 <xsd:element name="argument" type="argument" maxOccurs="unbounded" />
Chris@0 158 <xsd:element name="service" type="service" />
Chris@0 159 </xsd:choice>
Chris@0 160 <xsd:attribute name="type" type="argument_type" />
Chris@0 161 <xsd:attribute name="id" type="xsd:string" />
Chris@0 162 <xsd:attribute name="key" type="xsd:string" />
Chris@0 163 <xsd:attribute name="index" type="xsd:integer" />
Chris@0 164 <xsd:attribute name="on-invalid" type="invalid_sequence" />
Chris@0 165 <xsd:attribute name="strict" type="boolean" />
Chris@0 166 </xsd:complexType>
Chris@0 167
Chris@0 168 <xsd:complexType name="call">
Chris@0 169 <xsd:choice minOccurs="0">
Chris@0 170 <xsd:element name="argument" type="argument" maxOccurs="unbounded" />
Chris@0 171 </xsd:choice>
Chris@0 172 <xsd:attribute name="method" type="xsd:string" />
Chris@0 173 </xsd:complexType>
Chris@0 174
Chris@0 175 <xsd:simpleType name="parameter_type">
Chris@0 176 <xsd:restriction base="xsd:string">
Chris@0 177 <xsd:enumeration value="collection" />
Chris@0 178 <xsd:enumeration value="string" />
Chris@0 179 <xsd:enumeration value="constant" />
Chris@0 180 </xsd:restriction>
Chris@0 181 </xsd:simpleType>
Chris@0 182
Chris@0 183 <xsd:simpleType name="argument_type">
Chris@0 184 <xsd:restriction base="xsd:string">
Chris@0 185 <xsd:enumeration value="collection" />
Chris@0 186 <xsd:enumeration value="service" />
Chris@0 187 <xsd:enumeration value="expression" />
Chris@0 188 <xsd:enumeration value="string" />
Chris@0 189 <xsd:enumeration value="constant" />
Chris@0 190 </xsd:restriction>
Chris@0 191 </xsd:simpleType>
Chris@0 192
Chris@0 193 <xsd:simpleType name="invalid_sequence">
Chris@0 194 <xsd:restriction base="xsd:string">
Chris@0 195 <xsd:enumeration value="null" />
Chris@0 196 <xsd:enumeration value="ignore" />
Chris@0 197 <xsd:enumeration value="exception" />
Chris@0 198 </xsd:restriction>
Chris@0 199 </xsd:simpleType>
Chris@0 200
Chris@0 201 <xsd:simpleType name="boolean">
Chris@0 202 <xsd:restriction base="xsd:string">
Chris@0 203 <xsd:pattern value="(%.+%|true|false)" />
Chris@0 204 </xsd:restriction>
Chris@0 205 </xsd:simpleType>
Chris@0 206 </xsd:schema>