2010-01-15 16:07:36 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
|
2011-03-06 11:40:06 +00:00
|
|
|
<xsd:schema xmlns="http://symfony.com/schema/dic/services"
|
2010-01-15 16:07:36 +00:00
|
|
|
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
2011-03-06 11:40:06 +00:00
|
|
|
targetNamespace="http://symfony.com/schema/dic/services"
|
2010-01-15 16:07:36 +00:00
|
|
|
elementFormDefault="qualified">
|
|
|
|
|
|
|
|
<xsd:annotation>
|
|
|
|
<xsd:documentation><![CDATA[
|
|
|
|
Symfony XML Services Schema, version 1.0
|
|
|
|
Authors: Fabien Potencier
|
|
|
|
|
|
|
|
This defines a way to describe PHP objects (services) and their
|
|
|
|
dependencies.
|
|
|
|
]]></xsd:documentation>
|
|
|
|
</xsd:annotation>
|
|
|
|
|
|
|
|
<xsd:element name="container" type="container" />
|
|
|
|
|
|
|
|
<xsd:complexType name="container">
|
|
|
|
<xsd:annotation>
|
|
|
|
<xsd:documentation><![CDATA[
|
|
|
|
The root element of a service file.
|
|
|
|
]]></xsd:documentation>
|
|
|
|
</xsd:annotation>
|
|
|
|
<xsd:sequence>
|
2016-03-21 08:24:44 +00:00
|
|
|
<xsd:group ref="foreign" />
|
|
|
|
<xsd:sequence minOccurs="0">
|
|
|
|
<xsd:element name="imports" type="imports" />
|
|
|
|
<xsd:group ref="foreign" />
|
|
|
|
</xsd:sequence>
|
|
|
|
<xsd:sequence minOccurs="0">
|
|
|
|
<xsd:element name="parameters" type="parameters" />
|
|
|
|
<xsd:group ref="foreign" />
|
|
|
|
</xsd:sequence>
|
|
|
|
<xsd:sequence minOccurs="0">
|
|
|
|
<xsd:element name="services" type="services" />
|
|
|
|
<xsd:group ref="foreign" />
|
|
|
|
</xsd:sequence>
|
2010-01-15 16:07:36 +00:00
|
|
|
</xsd:sequence>
|
|
|
|
</xsd:complexType>
|
|
|
|
|
2016-03-21 08:24:44 +00:00
|
|
|
<xsd:group name="foreign">
|
|
|
|
<xsd:sequence>
|
|
|
|
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" />
|
|
|
|
</xsd:sequence>
|
|
|
|
</xsd:group>
|
|
|
|
|
2010-01-15 16:07:36 +00:00
|
|
|
<xsd:complexType name="services">
|
|
|
|
<xsd:annotation>
|
|
|
|
<xsd:documentation><![CDATA[
|
|
|
|
Enclosing element for the definition of all services
|
|
|
|
]]></xsd:documentation>
|
|
|
|
</xsd:annotation>
|
2016-12-28 10:18:50 +00:00
|
|
|
<xsd:choice maxOccurs="unbounded">
|
|
|
|
<xsd:element name="service" type="service" minOccurs="1" />
|
2017-01-14 11:46:46 +00:00
|
|
|
<xsd:element name="prototype" type="prototype" minOccurs="0" />
|
2016-12-28 10:18:50 +00:00
|
|
|
<xsd:element name="defaults" type="defaults" minOccurs="0" maxOccurs="1" />
|
2011-01-21 09:53:13 +00:00
|
|
|
</xsd:choice>
|
2010-01-15 16:07:36 +00:00
|
|
|
</xsd:complexType>
|
|
|
|
|
|
|
|
<xsd:complexType name="imports">
|
|
|
|
<xsd:annotation>
|
|
|
|
<xsd:documentation><![CDATA[
|
|
|
|
Enclosing element for the import elements
|
|
|
|
]]></xsd:documentation>
|
|
|
|
</xsd:annotation>
|
2011-01-21 09:53:13 +00:00
|
|
|
<xsd:choice minOccurs="1" maxOccurs="unbounded">
|
|
|
|
<xsd:element name="import" type="import" />
|
|
|
|
</xsd:choice>
|
2010-01-15 16:07:36 +00:00
|
|
|
</xsd:complexType>
|
|
|
|
|
|
|
|
<xsd:complexType name="import">
|
|
|
|
<xsd:annotation>
|
|
|
|
<xsd:documentation><![CDATA[
|
|
|
|
Import an external resource defining other services or parameters
|
|
|
|
]]></xsd:documentation>
|
|
|
|
</xsd:annotation>
|
|
|
|
<xsd:attribute name="resource" type="xsd:string" use="required" />
|
2010-08-24 15:36:29 +01:00
|
|
|
<xsd:attribute name="ignore-errors" type="boolean" />
|
2016-11-23 18:19:22 +00:00
|
|
|
<xsd:attribute name="type" type="xsd:string" />
|
2010-01-15 16:07:36 +00:00
|
|
|
</xsd:complexType>
|
|
|
|
|
2014-04-13 16:18:39 +01:00
|
|
|
<xsd:complexType name="callable">
|
2015-03-23 18:17:24 +00:00
|
|
|
<xsd:choice minOccurs="0" maxOccurs="1">
|
|
|
|
<xsd:element name="service" type="service" minOccurs="0" maxOccurs="1" />
|
|
|
|
</xsd:choice>
|
2010-01-15 16:07:36 +00:00
|
|
|
<xsd:attribute name="id" type="xsd:string" />
|
|
|
|
<xsd:attribute name="service" type="xsd:string" />
|
|
|
|
<xsd:attribute name="class" type="xsd:string" />
|
|
|
|
<xsd:attribute name="method" type="xsd:string" />
|
|
|
|
<xsd:attribute name="function" type="xsd:string" />
|
|
|
|
</xsd:complexType>
|
|
|
|
|
2016-12-28 10:18:50 +00:00
|
|
|
<xsd:complexType name="defaults">
|
|
|
|
<xsd:annotation>
|
|
|
|
<xsd:documentation><![CDATA[
|
|
|
|
Enclosing element for the service definitions' defaults for the current file
|
|
|
|
]]></xsd:documentation>
|
|
|
|
</xsd:annotation>
|
|
|
|
<xsd:choice maxOccurs="unbounded">
|
|
|
|
<xsd:element name="tag" type="tag" minOccurs="0" maxOccurs="unbounded" />
|
|
|
|
<xsd:element name="autowire" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
|
|
|
|
</xsd:choice>
|
|
|
|
<xsd:attribute name="public" type="boolean" />
|
|
|
|
<xsd:attribute name="autowire" type="boolean" />
|
2016-12-28 13:17:18 +00:00
|
|
|
<xsd:attribute name="inherit-tags" type="boolean" />
|
2016-12-28 10:18:50 +00:00
|
|
|
</xsd:complexType>
|
|
|
|
|
2010-01-15 16:07:36 +00:00
|
|
|
<xsd:complexType name="service">
|
|
|
|
<xsd:choice maxOccurs="unbounded">
|
|
|
|
<xsd:element name="file" type="xsd:string" minOccurs="0" maxOccurs="1" />
|
|
|
|
<xsd:element name="argument" type="argument" minOccurs="0" maxOccurs="unbounded" />
|
2014-04-13 16:18:39 +01:00
|
|
|
<xsd:element name="configurator" type="callable" minOccurs="0" maxOccurs="1" />
|
|
|
|
<xsd:element name="factory" type="callable" minOccurs="0" maxOccurs="1" />
|
2015-08-10 13:35:12 +01:00
|
|
|
<xsd:element name="deprecated" type="xsd:string" minOccurs="0" maxOccurs="1" />
|
2010-01-15 16:07:36 +00:00
|
|
|
<xsd:element name="call" type="call" minOccurs="0" maxOccurs="unbounded" />
|
2010-08-05 06:34:53 +01:00
|
|
|
<xsd:element name="tag" type="tag" minOccurs="0" maxOccurs="unbounded" />
|
2011-03-04 14:26:00 +00:00
|
|
|
<xsd:element name="property" type="property" minOccurs="0" maxOccurs="unbounded" />
|
2016-12-17 15:24:27 +00:00
|
|
|
<xsd:element name="getter" type="getter" minOccurs="0" maxOccurs="unbounded" />
|
2015-08-24 02:36:41 +01:00
|
|
|
<xsd:element name="autowiring-type" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
|
2016-10-05 21:46:29 +01:00
|
|
|
<xsd:element name="autowire" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
|
2010-01-15 16:07:36 +00:00
|
|
|
</xsd:choice>
|
|
|
|
<xsd:attribute name="id" type="xsd:string" />
|
|
|
|
<xsd:attribute name="class" type="xsd:string" />
|
2015-06-15 03:41:59 +01:00
|
|
|
<xsd:attribute name="shared" type="boolean" />
|
2010-12-29 19:12:24 +00:00
|
|
|
<xsd:attribute name="public" type="boolean" />
|
2011-01-23 11:06:23 +00:00
|
|
|
<xsd:attribute name="synthetic" type="boolean" />
|
2013-03-29 23:21:12 +00:00
|
|
|
<xsd:attribute name="lazy" type="boolean" />
|
2011-01-26 23:14:31 +00:00
|
|
|
<xsd:attribute name="abstract" type="boolean" />
|
2010-01-15 16:07:36 +00:00
|
|
|
<xsd:attribute name="alias" type="xsd:string" />
|
2011-01-26 23:14:31 +00:00
|
|
|
<xsd:attribute name="parent" type="xsd:string" />
|
2014-03-31 16:58:40 +01:00
|
|
|
<xsd:attribute name="decorates" type="xsd:string" />
|
|
|
|
<xsd:attribute name="decoration-inner-name" type="xsd:string" />
|
2015-07-31 02:41:40 +01:00
|
|
|
<xsd:attribute name="decoration-priority" type="xsd:integer" />
|
2015-08-24 02:36:41 +01:00
|
|
|
<xsd:attribute name="autowire" type="boolean" />
|
2016-12-28 13:17:18 +00:00
|
|
|
<xsd:attribute name="inherit-tags" type="boolean" />
|
2010-01-15 16:07:36 +00:00
|
|
|
</xsd:complexType>
|
|
|
|
|
2017-01-14 11:46:46 +00:00
|
|
|
<xsd:complexType name="prototype">
|
|
|
|
<xsd:choice maxOccurs="unbounded">
|
|
|
|
<xsd:element name="argument" type="argument" minOccurs="0" maxOccurs="unbounded" />
|
|
|
|
<xsd:element name="configurator" type="callable" minOccurs="0" maxOccurs="1" />
|
|
|
|
<xsd:element name="factory" type="callable" minOccurs="0" maxOccurs="1" />
|
|
|
|
<xsd:element name="deprecated" type="xsd:string" minOccurs="0" maxOccurs="1" />
|
|
|
|
<xsd:element name="call" type="call" minOccurs="0" maxOccurs="unbounded" />
|
|
|
|
<xsd:element name="tag" type="tag" minOccurs="0" maxOccurs="unbounded" />
|
|
|
|
<xsd:element name="property" type="property" minOccurs="0" maxOccurs="unbounded" />
|
|
|
|
<xsd:element name="getter" type="getter" minOccurs="0" maxOccurs="unbounded" />
|
|
|
|
<xsd:element name="autowire" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
|
|
|
|
</xsd:choice>
|
|
|
|
<xsd:attribute name="namespace" type="xsd:string" use="required" />
|
|
|
|
<xsd:attribute name="resource" type="xsd:string" use="required" />
|
|
|
|
<xsd:attribute name="shared" type="boolean" />
|
|
|
|
<xsd:attribute name="public" type="boolean" />
|
|
|
|
<xsd:attribute name="lazy" type="boolean" />
|
|
|
|
<xsd:attribute name="abstract" type="boolean" />
|
|
|
|
<xsd:attribute name="parent" type="xsd:string" />
|
|
|
|
<xsd:attribute name="autowire" type="boolean" />
|
|
|
|
<xsd:attribute name="inherit-tags" type="boolean" />
|
|
|
|
</xsd:complexType>
|
|
|
|
|
2010-08-05 06:34:53 +01:00
|
|
|
<xsd:complexType name="tag">
|
2015-12-10 21:20:42 +00:00
|
|
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
2010-02-09 08:45:23 +00:00
|
|
|
<xsd:anyAttribute namespace="##any" processContents="lax" />
|
|
|
|
</xsd:complexType>
|
|
|
|
|
2010-01-15 16:07:36 +00:00
|
|
|
<xsd:complexType name="parameters">
|
2011-01-21 09:53:13 +00:00
|
|
|
<xsd:choice minOccurs="1" maxOccurs="unbounded">
|
|
|
|
<xsd:element name="parameter" type="parameter" />
|
|
|
|
</xsd:choice>
|
2010-01-15 16:07:36 +00:00
|
|
|
<xsd:attribute name="type" type="parameter_type" />
|
|
|
|
<xsd:attribute name="key" type="xsd:string" />
|
|
|
|
</xsd:complexType>
|
|
|
|
|
|
|
|
<xsd:complexType name="parameter" mixed="true">
|
2011-01-21 09:53:13 +00:00
|
|
|
<xsd:choice minOccurs="0" maxOccurs="unbounded">
|
|
|
|
<xsd:element name="parameter" type="parameter" />
|
|
|
|
</xsd:choice>
|
2010-01-15 16:07:36 +00:00
|
|
|
<xsd:attribute name="type" type="parameter_type" />
|
|
|
|
<xsd:attribute name="id" type="xsd:string" />
|
|
|
|
<xsd:attribute name="key" type="xsd:string" />
|
2010-01-31 16:27:25 +00:00
|
|
|
<xsd:attribute name="on-invalid" type="invalid_sequence" />
|
2010-01-15 16:07:36 +00:00
|
|
|
</xsd:complexType>
|
|
|
|
|
2011-03-04 14:26:00 +00:00
|
|
|
<xsd:complexType name="property" mixed="true">
|
2012-05-07 11:25:27 +01:00
|
|
|
<xsd:choice minOccurs="0" maxOccurs="1">
|
2013-11-23 20:44:08 +00:00
|
|
|
<xsd:element name="property" type="property" minOccurs="0" maxOccurs="unbounded" />
|
2012-05-07 11:25:27 +01:00
|
|
|
<xsd:element name="service" type="service" />
|
|
|
|
</xsd:choice>
|
2011-03-04 14:26:00 +00:00
|
|
|
<xsd:attribute name="type" type="argument_type" />
|
|
|
|
<xsd:attribute name="id" type="xsd:string" />
|
2013-11-23 20:44:08 +00:00
|
|
|
<xsd:attribute name="key" type="xsd:string" />
|
2011-03-04 14:26:00 +00:00
|
|
|
<xsd:attribute name="name" type="xsd:string" />
|
2016-12-15 14:48:03 +00:00
|
|
|
<xsd:attribute name="on-invalid" type="invalid_sequence" />
|
2011-03-04 14:26:00 +00:00
|
|
|
<xsd:attribute name="strict" type="boolean" />
|
|
|
|
</xsd:complexType>
|
|
|
|
|
2016-12-17 15:24:27 +00:00
|
|
|
<xsd:complexType name="getter" mixed="true">
|
|
|
|
<xsd:choice minOccurs="0" maxOccurs="1">
|
|
|
|
<xsd:element name="getter" type="getter" minOccurs="0" maxOccurs="unbounded" />
|
|
|
|
<xsd:element name="service" type="service" />
|
|
|
|
</xsd:choice>
|
|
|
|
<xsd:attribute name="type" type="argument_type" />
|
|
|
|
<xsd:attribute name="id" type="xsd:string" />
|
|
|
|
<xsd:attribute name="key" type="xsd:string" />
|
|
|
|
<xsd:attribute name="name" type="xsd:string" />
|
|
|
|
<xsd:attribute name="on-invalid" type="invalid_sequence" />
|
|
|
|
</xsd:complexType>
|
|
|
|
|
2010-01-15 16:07:36 +00:00
|
|
|
<xsd:complexType name="argument" mixed="true">
|
|
|
|
<xsd:choice maxOccurs="unbounded">
|
|
|
|
<xsd:element name="argument" type="argument" minOccurs="0" maxOccurs="unbounded" />
|
|
|
|
<xsd:element name="service" type="service" />
|
|
|
|
</xsd:choice>
|
|
|
|
<xsd:attribute name="type" type="argument_type" />
|
|
|
|
<xsd:attribute name="id" type="xsd:string" />
|
|
|
|
<xsd:attribute name="key" type="xsd:string" />
|
2011-01-26 23:14:31 +00:00
|
|
|
<xsd:attribute name="index" type="xsd:integer" />
|
2016-12-15 14:48:03 +00:00
|
|
|
<xsd:attribute name="on-invalid" type="invalid_sequence" />
|
2011-01-17 22:28:59 +00:00
|
|
|
<xsd:attribute name="strict" type="boolean" />
|
2016-12-15 07:56:11 +00:00
|
|
|
<xsd:attribute name="method" type="xsd:string" />
|
2010-01-15 16:07:36 +00:00
|
|
|
</xsd:complexType>
|
|
|
|
|
|
|
|
<xsd:complexType name="call" mixed="true">
|
|
|
|
<xsd:choice maxOccurs="unbounded">
|
|
|
|
<xsd:element name="argument" type="argument" minOccurs="0" maxOccurs="unbounded" />
|
|
|
|
<xsd:element name="service" type="service" />
|
|
|
|
</xsd:choice>
|
|
|
|
<xsd:attribute name="method" type="xsd:string" />
|
|
|
|
</xsd:complexType>
|
|
|
|
|
|
|
|
<xsd:simpleType name="parameter_type">
|
|
|
|
<xsd:restriction base="xsd:string">
|
|
|
|
<xsd:enumeration value="collection" />
|
|
|
|
<xsd:enumeration value="string" />
|
|
|
|
<xsd:enumeration value="constant" />
|
|
|
|
</xsd:restriction>
|
|
|
|
</xsd:simpleType>
|
|
|
|
|
|
|
|
<xsd:simpleType name="argument_type">
|
|
|
|
<xsd:restriction base="xsd:string">
|
|
|
|
<xsd:enumeration value="collection" />
|
|
|
|
<xsd:enumeration value="service" />
|
2013-09-02 11:46:47 +01:00
|
|
|
<xsd:enumeration value="expression" />
|
2010-01-15 16:07:36 +00:00
|
|
|
<xsd:enumeration value="string" />
|
|
|
|
<xsd:enumeration value="constant" />
|
2016-12-13 17:37:51 +00:00
|
|
|
<xsd:enumeration value="iterator" />
|
2017-02-06 23:00:41 +00:00
|
|
|
<xsd:enumeration value="service-locator" />
|
2016-12-15 07:56:11 +00:00
|
|
|
<xsd:enumeration value="closure-proxy" />
|
2010-01-15 16:07:36 +00:00
|
|
|
</xsd:restriction>
|
|
|
|
</xsd:simpleType>
|
|
|
|
|
2010-01-31 16:27:25 +00:00
|
|
|
<xsd:simpleType name="invalid_sequence">
|
|
|
|
<xsd:restriction base="xsd:string">
|
|
|
|
<xsd:enumeration value="null" />
|
|
|
|
<xsd:enumeration value="ignore" />
|
|
|
|
<xsd:enumeration value="exception" />
|
|
|
|
</xsd:restriction>
|
|
|
|
</xsd:simpleType>
|
|
|
|
|
2010-01-15 16:07:36 +00:00
|
|
|
<xsd:simpleType name="boolean">
|
|
|
|
<xsd:restriction base="xsd:string">
|
|
|
|
<xsd:pattern value="(%.+%|true|false)" />
|
|
|
|
</xsd:restriction>
|
|
|
|
</xsd:simpleType>
|
|
|
|
</xsd:schema>
|