Selaa lähdekoodia

[DependencyInjection] oops, fixed the previous commit

Fabien Potencier 15 vuotta sitten
vanhempi
commit
a5871688a7

+ 16 - 0
src/Symfony/Components/DependencyInjection/Loader/schema/dic/doctrine/doctrine-1.0.xsd

@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<xsd:schema xmlns="http://www.symfony-project.org/schema/dic/doctrine"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+    targetNamespace="http://www.symfony-project.org/schema/dic/doctrine"
+    elementFormDefault="qualified">
+
+  <xsd:element name="dbal" type="dbal" />
+
+  <xsd:complexType name="dbal">
+    <xsd:attribute name="dbname" type="xsd:string" />
+    <xsd:attribute name="host" type="xsd:string" />
+    <xsd:attribute name="username" type="xsd:string" />
+    <xsd:attribute name="password" type="xsd:string" />
+  </xsd:complexType>
+</xsd:schema>

+ 155 - 0
src/Symfony/Components/DependencyInjection/Loader/schema/dic/services/services-1.0.xsd

@@ -0,0 +1,155 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<xsd:schema xmlns="http://www.symfony-project.org/schema/dic/services"
+     xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+     targetNamespace="http://www.symfony-project.org/schema/dic/services"
+     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>
+      <xsd:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded" />
+      <xsd:element name="imports" type="imports" minOccurs="0" maxOccurs="1" />
+      <xsd:element name="parameters" type="parameters" minOccurs="0" maxOccurs="1" />
+      <xsd:element name="services" type="services" minOccurs="0" maxOccurs="1" />
+      <xsd:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded" />
+    </xsd:sequence>
+  </xsd:complexType>
+
+  <xsd:complexType name="services">
+    <xsd:annotation>
+      <xsd:documentation><![CDATA[
+        Enclosing element for the definition of all services
+      ]]></xsd:documentation>
+    </xsd:annotation>
+    <xsd:sequence>
+      <xsd:element name="service" type="service" minOccurs="1" maxOccurs="unbounded" />
+    </xsd:sequence>
+  </xsd:complexType>
+
+  <xsd:complexType name="imports">
+    <xsd:annotation>
+      <xsd:documentation><![CDATA[
+        Enclosing element for the import elements
+      ]]></xsd:documentation>
+    </xsd:annotation>
+    <xsd:sequence>
+      <xsd:element name="import" type="import" minOccurs="1" maxOccurs="unbounded" />
+    </xsd:sequence>
+  </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" />
+    <xsd:attribute name="class" type="xsd:string">
+      <xsd:annotation>
+        <xsd:documentation><![CDATA[
+          The PHP class able to load the resource. If not defined, the loader uses the current loader.
+        ]]></xsd:documentation>
+      </xsd:annotation>
+    </xsd:attribute>
+  </xsd:complexType>
+
+  <xsd:complexType name="configurator">
+    <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>
+
+  <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" />
+      <xsd:element name="configurator" type="configurator" minOccurs="0" maxOccurs="1" />
+      <xsd:element name="call" type="call" minOccurs="0" maxOccurs="unbounded" />
+    </xsd:choice>
+    <xsd:attribute name="id" type="xsd:string" />
+    <xsd:attribute name="class" type="xsd:string" />
+    <xsd:attribute name="shared" type="boolean" />
+    <xsd:attribute name="constructor" type="xsd:string" />
+    <xsd:attribute name="alias" type="xsd:string" />
+  </xsd:complexType>
+
+  <xsd:complexType name="parameters">
+    <xsd:sequence>
+      <xsd:element name="parameter" type="parameter" minOccurs="1" maxOccurs="unbounded" />
+    </xsd:sequence>
+    <xsd:attribute name="type" type="parameter_type" />
+    <xsd:attribute name="key" type="xsd:string" />
+  </xsd:complexType>
+
+  <xsd:complexType name="parameter" mixed="true">
+    <xsd:sequence>
+      <xsd:element name="parameter" type="parameter" minOccurs="0" maxOccurs="unbounded" />
+    </xsd:sequence>
+    <xsd:attribute name="type" type="parameter_type" />
+    <xsd:attribute name="id" type="xsd:string" />
+    <xsd:attribute name="key" type="xsd:string" />
+    <xsd:attribute name="on-invalid" type="xsd:string" />
+  </xsd:complexType>
+
+  <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" />
+    <xsd:attribute name="on-invalid" type="xsd:string" />
+  </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="service" />
+      <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" />
+      <xsd:enumeration value="string" />
+      <xsd:enumeration value="constant" />
+    </xsd:restriction>
+  </xsd:simpleType>
+
+  <xsd:simpleType name="boolean">
+    <xsd:restriction base="xsd:string">
+      <xsd:pattern value="(%.+%|true|false)" />
+    </xsd:restriction>
+  </xsd:simpleType>
+</xsd:schema>

+ 53 - 0
src/Symfony/Components/DependencyInjection/Loader/schema/dic/swiftmailer/swiftmailer-1.0.xsd

@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<xsd:schema xmlns="http://www.symfony-project.org/schema/dic/swiftmailer"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+    targetNamespace="http://www.symfony-project.org/schema/dic/swiftmailer"
+    elementFormDefault="qualified">
+
+  <xsd:element name="mailer" type="mailer" />
+
+  <xsd:complexType name="mailer">
+    <xsd:sequence>
+      <xsd:element name="username" type="xsd:string" minOccurs="0" maxOccurs="1" />
+      <xsd:element name="password" type="xsd:string" minOccurs="0" maxOccurs="1" />
+      <xsd:element name="host" type="xsd:string" minOccurs="0" maxOccurs="1" />
+      <xsd:element name="port" type="xsd:string" minOccurs="0" maxOccurs="1" />
+      <xsd:element name="encryption" type="encryption" minOccurs="0" maxOccurs="1" />
+      <xsd:element name="auth_mode" type="auth_mode" minOccurs="0" maxOccurs="1" />
+
+      <xsd:element name="spool" type="spool" minOccurs="0" maxOccurs="1" />
+    </xsd:sequence>
+
+    <xsd:attribute name="transport" type="xsd:string" />
+    <xsd:attribute name="delivery_strategy" type="delivery_strategy" />
+  </xsd:complexType>
+
+  <xsd:complexType name="spool">
+    <xsd:attribute name="path" type="xsd:string" />
+  </xsd:complexType>
+
+  <xsd:simpleType name="encryption">
+    <xsd:restriction base="xsd:string">
+      <xsd:enumeration value="tls" />
+      <xsd:enumeration value="ssl" />
+    </xsd:restriction>
+  </xsd:simpleType>
+
+  <xsd:simpleType name="auth_mode">
+    <xsd:restriction base="xsd:string">
+      <xsd:enumeration value="plain" />
+      <xsd:enumeration value="login" />
+      <xsd:enumeration value="cram-md5" />
+    </xsd:restriction>
+  </xsd:simpleType>
+
+  <xsd:simpleType name="delivery_strategy">
+    <xsd:restriction base="xsd:string">
+      <xsd:enumeration value="realtime" />
+      <xsd:enumeration value="spool" />
+      <xsd:enumeration value="single_address" />
+      <xsd:enumeration value="none" />
+    </xsd:restriction>
+  </xsd:simpleType>
+</xsd:schema>

+ 19 - 0
src/Symfony/Components/DependencyInjection/Loader/schema/dic/symfony/symfony-1.0.xsd

@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<xsd:schema xmlns="http://www.symfony-project.org/schema/dic/symfony"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+    targetNamespace="http://www.symfony-project.org/schema/dic/symfony"
+    elementFormDefault="qualified">
+
+  <xsd:element name="templating" type="templating" />
+
+  <xsd:complexType name="templating">
+    <xsd:sequence>
+      <xsd:element name="loader" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
+      <xsd:element name="helper" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
+    </xsd:sequence>
+
+    <xsd:attribute name="path" type="xsd:string" />
+    <xsd:attribute name="cache" type="xsd:string" />
+  </xsd:complexType>
+</xsd:schema>

+ 65 - 0
src/Symfony/Components/DependencyInjection/Loader/schema/dic/zend/zend-1.0.xsd

@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<xsd:schema xmlns="http://www.symfony-project.org/schema/dic/zend"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+    targetNamespace="http://www.symfony-project.org/schema/dic/zend"
+    elementFormDefault="qualified">
+
+  <xsd:element name="logger" type="logger" />
+
+  <xsd:complexType name="logger">
+    <xsd:attribute name="priority" type="priority" />
+    <xsd:attribute name="path" type="xsd:string" />
+  </xsd:complexType>
+
+  <xsd:simpleType name="priority">
+    <xsd:restriction base="xsd:string">
+      <xsd:enumeration value="emerg" />
+      <xsd:enumeration value="alert" />
+      <xsd:enumeration value="crit" />
+      <xsd:enumeration value="err" />
+      <xsd:enumeration value="warn" />
+      <xsd:enumeration value="notice" />
+      <xsd:enumeration value="info" />
+      <xsd:enumeration value="debug" />
+
+      <xsd:enumeration value="0" />
+      <xsd:enumeration value="1" />
+      <xsd:enumeration value="2" />
+      <xsd:enumeration value="3" />
+      <xsd:enumeration value="4" />
+      <xsd:enumeration value="5" />
+      <xsd:enumeration value="6" />
+      <xsd:enumeration value="7" />
+    </xsd:restriction>
+  </xsd:simpleType>
+
+  <xsd:element name="mail" type="mail" />
+
+  <xsd:complexType name="mail">
+    <xsd:sequence>
+      <xsd:element name="username" type="xsd:string" minOccurs="0" maxOccurs="1" />
+      <xsd:element name="password" type="xsd:string" minOccurs="0" maxOccurs="1" />
+      <xsd:element name="host" type="xsd:string" minOccurs="0" maxOccurs="1" />
+      <xsd:element name="port" type="xsd:string" minOccurs="0" maxOccurs="1" />
+      <xsd:element name="ssl" type="ssl" minOccurs="0" maxOccurs="1" />
+      <xsd:element name="auth" type="auth" minOccurs="0" maxOccurs="1" />
+    </xsd:sequence>
+
+    <xsd:attribute name="transport" type="xsd:string" />
+  </xsd:complexType>
+
+  <xsd:simpleType name="auth">
+    <xsd:restriction base="xsd:string">
+      <xsd:enumeration value="plain" />
+      <xsd:enumeration value="login" />
+    </xsd:restriction>
+  </xsd:simpleType>
+
+  <xsd:simpleType name="ssl">
+    <xsd:restriction base="xsd:string">
+      <xsd:enumeration value="tls" />
+      <xsd:enumeration value="ssl" />
+    </xsd:restriction>
+  </xsd:simpleType>
+</xsd:schema>