symfony-1.0.xsd 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <xsd:schema xmlns="http://symfony.com/schema/dic/symfony"
  3. xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  4. targetNamespace="http://symfony.com/schema/dic/symfony"
  5. elementFormDefault="qualified">
  6. <xsd:element name="config" type="config" />
  7. <xsd:simpleType name="validator_api_version">
  8. <xsd:restriction base="xsd:string">
  9. <xsd:enumeration value="auto" />
  10. <xsd:enumeration value="2.4" />
  11. <xsd:enumeration value="2.5" />
  12. <xsd:enumeration value="2.5-bc" />
  13. </xsd:restriction>
  14. </xsd:simpleType>
  15. <xsd:complexType name="config">
  16. <xsd:all>
  17. <xsd:element name="assets" type="assets" minOccurs="0" maxOccurs="1" />
  18. <xsd:element name="form" type="form" minOccurs="0" maxOccurs="1" />
  19. <xsd:element name="csrf-protection" type="csrf_protection" minOccurs="0" maxOccurs="1" />
  20. <xsd:element name="esi" type="esi" minOccurs="0" maxOccurs="1" />
  21. <xsd:element name="ssi" type="ssi" minOccurs="0" maxOccurs="1" />
  22. <xsd:element name="fragments" type="fragments" minOccurs="0" maxOccurs="1" />
  23. <xsd:element name="profiler" type="profiler" minOccurs="0" maxOccurs="1" />
  24. <xsd:element name="router" type="router" minOccurs="0" maxOccurs="1" />
  25. <xsd:element name="session" type="session" minOccurs="0" maxOccurs="1" />
  26. <xsd:element name="request" type="request" minOccurs="0" maxOccurs="1" />
  27. <xsd:element name="templating" type="templating" minOccurs="0" maxOccurs="1" />
  28. <xsd:element name="translator" type="translator" minOccurs="0" maxOccurs="1" />
  29. <xsd:element name="validation" type="validation" minOccurs="0" maxOccurs="1" />
  30. <xsd:element name="annotations" type="annotations" minOccurs="0" maxOccurs="1" />
  31. <xsd:element name="property-access" type="property_access" minOccurs="0" maxOccurs="1" />
  32. <xsd:element name="serializer" type="serializer" minOccurs="0" maxOccurs="1" />
  33. <xsd:element name="property-info" type="property_info" minOccurs="0" maxOccurs="1" />
  34. </xsd:all>
  35. <xsd:attribute name="http-method-override" type="xsd:boolean" />
  36. <xsd:attribute name="trusted-proxies" type="xsd:string" />
  37. <xsd:attribute name="ide" type="xsd:string" />
  38. <xsd:attribute name="secret" type="xsd:string" />
  39. <xsd:attribute name="default-locale" type="xsd:string" />
  40. <xsd:attribute name="test" type="xsd:boolean" />
  41. </xsd:complexType>
  42. <xsd:complexType name="form">
  43. <xsd:all>
  44. <xsd:element name="csrf-protection" type="form_csrf_protection" minOccurs="0" maxOccurs="1" />
  45. </xsd:all>
  46. <xsd:attribute name="enabled" type="xsd:boolean" />
  47. </xsd:complexType>
  48. <xsd:complexType name="form_csrf_protection">
  49. <xsd:attribute name="enabled" type="xsd:boolean" />
  50. <xsd:attribute name="field-name" type="xsd:string" />
  51. </xsd:complexType>
  52. <xsd:complexType name="csrf_protection">
  53. <xsd:attribute name="enabled" type="xsd:boolean" />
  54. <xsd:attribute name="field-name" type="xsd:string" />
  55. </xsd:complexType>
  56. <xsd:complexType name="esi">
  57. <xsd:attribute name="enabled" type="xsd:boolean" />
  58. </xsd:complexType>
  59. <xsd:complexType name="ssi">
  60. <xsd:attribute name="enabled" type="xsd:boolean" />
  61. </xsd:complexType>
  62. <xsd:complexType name="fragments">
  63. <xsd:attribute name="enabled" type="xsd:boolean" />
  64. <xsd:attribute name="path" type="xsd:string" />
  65. </xsd:complexType>
  66. <xsd:complexType name="profiler">
  67. <xsd:all>
  68. <xsd:element name="matcher" type="profiler_matcher" minOccurs="0" maxOccurs="1" />
  69. </xsd:all>
  70. <xsd:attribute name="collect" type="xsd:string" />
  71. <xsd:attribute name="only-exceptions" type="xsd:string" />
  72. <xsd:attribute name="only-master-requests" type="xsd:string" />
  73. <xsd:attribute name="enabled" type="xsd:string" />
  74. <xsd:attribute name="dsn" type="xsd:string" />
  75. <xsd:attribute name="username" type="xsd:string" />
  76. <xsd:attribute name="password" type="xsd:string" />
  77. <xsd:attribute name="lifetime" type="xsd:string" />
  78. </xsd:complexType>
  79. <xsd:complexType name="profiler_matcher">
  80. <xsd:attribute name="ip" type="xsd:string" />
  81. <xsd:attribute name="path" type="xsd:string" />
  82. <xsd:attribute name="service" type="xsd:string" />
  83. </xsd:complexType>
  84. <xsd:complexType name="router">
  85. <xsd:attribute name="resource" type="xsd:string" />
  86. <xsd:attribute name="type" type="xsd:string" />
  87. <xsd:attribute name="http-port" type="xsd:string" />
  88. <xsd:attribute name="https-port" type="xsd:string" />
  89. <xsd:attribute name="strict-requirements" type="xsd:string" />
  90. </xsd:complexType>
  91. <xsd:complexType name="session">
  92. <xsd:attribute name="enabled" type="xsd:boolean" />
  93. <xsd:attribute name="storage-id" type="xsd:string" />
  94. <xsd:attribute name="handler-id" type="xsd:string" />
  95. <xsd:attribute name="name" type="xsd:string" />
  96. <xsd:attribute name="cookie-lifetime" type="xsd:string" />
  97. <xsd:attribute name="cookie-path" type="xsd:string" />
  98. <xsd:attribute name="cookie-domain" type="xsd:string" />
  99. <xsd:attribute name="cookie-secure" type="xsd:boolean" />
  100. <xsd:attribute name="cookie-httponly" type="xsd:boolean" />
  101. <xsd:attribute name="use-cookies" type="xsd:boolean" />
  102. <xsd:attribute name="cache-limiter" type="xsd:string" />
  103. <xsd:attribute name="gc-maxlifetime" type="xsd:string" />
  104. <xsd:attribute name="gc-divisor" type="xsd:string" />
  105. <xsd:attribute name="gc-probability" type="xsd:string" />
  106. <xsd:attribute name="use-strict-mode" type="xsd:boolean" />
  107. <xsd:attribute name="save-path" type="xsd:string" />
  108. </xsd:complexType>
  109. <xsd:complexType name="request">
  110. <xsd:sequence>
  111. <xsd:element name="format" type="format" minOccurs="0" maxOccurs="unbounded" />
  112. </xsd:sequence>
  113. </xsd:complexType>
  114. <xsd:complexType name="format">
  115. <xsd:choice minOccurs="1" maxOccurs="unbounded">
  116. <xsd:element name="mime-type" type="xsd:string" />
  117. </xsd:choice>
  118. <xsd:attribute name="name" type="xsd:string" use="required"/>
  119. </xsd:complexType>
  120. <xsd:complexType name="assets">
  121. <xsd:sequence>
  122. <xsd:element name="base-url" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
  123. <xsd:element name="package" type="package" minOccurs="0" maxOccurs="unbounded" />
  124. </xsd:sequence>
  125. <xsd:attribute name="base-path" type="xsd:string" />
  126. <xsd:attribute name="version" type="xsd:string" />
  127. <xsd:attribute name="version-format" type="xsd:string" />
  128. </xsd:complexType>
  129. <xsd:complexType name="package">
  130. <xsd:sequence>
  131. <xsd:element name="base-url" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
  132. </xsd:sequence>
  133. <xsd:attribute name="name" type="xsd:string" use="required" />
  134. <xsd:attribute name="base-path" type="xsd:string" />
  135. <xsd:attribute name="version" type="xsd:string" />
  136. <xsd:attribute name="version-format" type="xsd:string" />
  137. </xsd:complexType>
  138. <xsd:complexType name="templating">
  139. <xsd:sequence>
  140. <xsd:element name="loader" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
  141. <xsd:element name="engine" type="xsd:string" minOccurs="1" maxOccurs="unbounded" />
  142. <xsd:element name="assets-base-url" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
  143. <xsd:element name="package" type="old-package" minOccurs="0" maxOccurs="unbounded" />
  144. <xsd:element name="form" type="form-resources" minOccurs="0" maxOccurs="1" />
  145. </xsd:sequence>
  146. <xsd:attribute name="assets-version" type="xsd:string" />
  147. <xsd:attribute name="assets-version-format" type="xsd:string" />
  148. <xsd:attribute name="cache" type="xsd:string" />
  149. <xsd:attribute name="hinclude-default-template" type="xsd:string" />
  150. </xsd:complexType>
  151. <xsd:complexType name="form-resources">
  152. <xsd:choice minOccurs="1" maxOccurs="unbounded">
  153. <xsd:element name="resource" type="xsd:string" />
  154. </xsd:choice>
  155. </xsd:complexType>
  156. <xsd:complexType name="old-package">
  157. <xsd:sequence>
  158. <xsd:element name="base-url" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
  159. </xsd:sequence>
  160. <xsd:attribute name="name" type="xsd:string" use="required" />
  161. <xsd:attribute name="version" type="xsd:string" />
  162. <xsd:attribute name="version-format" type="xsd:string" />
  163. </xsd:complexType>
  164. <xsd:complexType name="translator">
  165. <xsd:sequence>
  166. <xsd:element name="fallback" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
  167. <xsd:element name="path" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
  168. </xsd:sequence>
  169. <xsd:attribute name="enabled" type="xsd:boolean" />
  170. <xsd:attribute name="fallback" type="xsd:string" />
  171. <xsd:attribute name="logging" type="xsd:boolean" />
  172. </xsd:complexType>
  173. <xsd:complexType name="validation">
  174. <xsd:choice minOccurs="0" maxOccurs="unbounded">
  175. <xsd:element name="static-method" type="xsd:string" />
  176. </xsd:choice>
  177. <xsd:attribute name="enabled" type="xsd:boolean" />
  178. <xsd:attribute name="cache" type="xsd:string" />
  179. <xsd:attribute name="enable-annotations" type="xsd:boolean" />
  180. <xsd:attribute name="static-method" type="xsd:boolean" />
  181. <xsd:attribute name="translation-domain" type="xsd:string" />
  182. <xsd:attribute name="strict-email" type="xsd:boolean" />
  183. <xsd:attribute name="api" type="validator_api_version" />
  184. </xsd:complexType>
  185. <xsd:complexType name="annotations">
  186. <xsd:attribute name="cache" type="xsd:string" />
  187. <xsd:attribute name="debug" type="xsd:string" />
  188. <xsd:attribute name="file-cache-dir" type="xsd:string" />
  189. </xsd:complexType>
  190. <xsd:complexType name="property_access">
  191. <xsd:attribute name="magic-call" type="xsd:boolean" />
  192. <xsd:attribute name="throw-exception-on-invalid-index" type="xsd:boolean" />
  193. </xsd:complexType>
  194. <xsd:complexType name="serializer">
  195. <xsd:attribute name="enabled" type="xsd:boolean" />
  196. <xsd:attribute name="cache" type="xsd:string" />
  197. <xsd:attribute name="enable-annotations" type="xsd:boolean" />
  198. <xsd:attribute name="name-converter" type="xsd:string" />
  199. </xsd:complexType>
  200. <xsd:complexType name="property_info">
  201. <xsd:attribute name="enabled" type="xsd:boolean" />
  202. </xsd:complexType>
  203. </xsd:schema>