symfony-1.0.xsd 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687
  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:complexType name="config">
  8. <xsd:choice maxOccurs="unbounded">
  9. <xsd:element name="assets" type="assets" minOccurs="0" maxOccurs="1" />
  10. <xsd:element name="form" type="form" minOccurs="0" maxOccurs="1" />
  11. <xsd:element name="csrf-protection" type="csrf_protection" minOccurs="0" maxOccurs="1" />
  12. <xsd:element name="esi" type="esi" minOccurs="0" maxOccurs="1" />
  13. <xsd:element name="ssi" type="ssi" minOccurs="0" maxOccurs="1" />
  14. <xsd:element name="fragments" type="fragments" minOccurs="0" maxOccurs="1" />
  15. <xsd:element name="web-link" type="web_link" minOccurs="0" maxOccurs="1" />
  16. <xsd:element name="profiler" type="profiler" minOccurs="0" maxOccurs="1" />
  17. <xsd:element name="router" type="router" minOccurs="0" maxOccurs="1" />
  18. <xsd:element name="session" type="session" minOccurs="0" maxOccurs="1" />
  19. <xsd:element name="request" type="request" minOccurs="0" maxOccurs="1" />
  20. <xsd:element name="translator" type="translator" minOccurs="0" maxOccurs="1" />
  21. <xsd:element name="validation" type="validation" minOccurs="0" maxOccurs="1" />
  22. <xsd:element name="annotations" type="annotations" minOccurs="0" maxOccurs="1" />
  23. <xsd:element name="property-access" type="property_access" minOccurs="0" maxOccurs="1" />
  24. <xsd:element name="serializer" type="serializer" minOccurs="0" maxOccurs="1" />
  25. <xsd:element name="property-info" type="property_info" minOccurs="0" maxOccurs="1" />
  26. <xsd:element name="cache" type="cache" minOccurs="0" maxOccurs="1" />
  27. <xsd:element name="workflow" type="workflow" minOccurs="0" maxOccurs="unbounded" />
  28. <xsd:element name="php-errors" type="php-errors" minOccurs="0" maxOccurs="1" />
  29. <xsd:element name="lock" type="lock" minOccurs="0" maxOccurs="1" />
  30. <xsd:element name="messenger" type="messenger" minOccurs="0" maxOccurs="1" />
  31. <xsd:element name="http-client" type="http_client" minOccurs="0" maxOccurs="1" />
  32. <xsd:element name="mailer" type="mailer" minOccurs="0" maxOccurs="1" />
  33. <xsd:element name="http-cache" type="http_cache" minOccurs="0" maxOccurs="1" />
  34. <xsd:element name="rate-limiter" type="rate_limiter" minOccurs="0" maxOccurs="1" />
  35. </xsd:choice>
  36. <xsd:attribute name="http-method-override" type="xsd:boolean" />
  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:attribute name="error-controller" type="xsd:string" />
  42. <xsd:attribute name="trusted-hosts" type="xsd:string" />
  43. <xsd:attribute name="trusted-proxies" type="xsd:string" />
  44. <xsd:attribute name="trusted-headers" type="xsd:string" />
  45. </xsd:complexType>
  46. <xsd:complexType name="form">
  47. <xsd:all>
  48. <xsd:element name="csrf-protection" type="form_csrf_protection" minOccurs="0" maxOccurs="1" />
  49. </xsd:all>
  50. <xsd:attribute name="enabled" type="xsd:boolean" />
  51. <xsd:attribute name="legacy-error-messages" type="xsd:boolean" />
  52. </xsd:complexType>
  53. <xsd:complexType name="form_csrf_protection">
  54. <xsd:attribute name="enabled" type="xsd:boolean" />
  55. <xsd:attribute name="field-name" type="xsd:string" />
  56. </xsd:complexType>
  57. <xsd:complexType name="csrf_protection">
  58. <xsd:attribute name="enabled" type="xsd:boolean" />
  59. </xsd:complexType>
  60. <xsd:complexType name="esi">
  61. <xsd:attribute name="enabled" type="xsd:boolean" />
  62. </xsd:complexType>
  63. <xsd:complexType name="ssi">
  64. <xsd:attribute name="enabled" type="xsd:boolean" />
  65. </xsd:complexType>
  66. <xsd:complexType name="fragments">
  67. <xsd:attribute name="enabled" type="xsd:boolean" />
  68. <xsd:attribute name="path" type="xsd:string" />
  69. <xsd:attribute name="hinclude-default-template" type="xsd:string" />
  70. </xsd:complexType>
  71. <xsd:complexType name="web_link">
  72. <xsd:attribute name="enabled" type="xsd:boolean" />
  73. </xsd:complexType>
  74. <xsd:complexType name="profiler">
  75. <xsd:attribute name="collect" type="xsd:string" />
  76. <xsd:attribute name="only-exceptions" type="xsd:string" />
  77. <xsd:attribute name="only-master-requests" type="xsd:string" />
  78. <xsd:attribute name="enabled" type="xsd:string" />
  79. <xsd:attribute name="dsn" type="xsd:string" />
  80. <xsd:attribute name="username" type="xsd:string" />
  81. <xsd:attribute name="password" type="xsd:string" />
  82. <xsd:attribute name="lifetime" 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:attribute name="utf8" type="xsd:boolean" />
  91. <xsd:attribute name="default-uri" type="xsd:string" />
  92. </xsd:complexType>
  93. <xsd:complexType name="session">
  94. <xsd:attribute name="enabled" type="xsd:boolean" />
  95. <xsd:attribute name="storage-id" type="xsd:string" />
  96. <xsd:attribute name="handler-id" type="xsd:string" />
  97. <xsd:attribute name="name" type="xsd:string" />
  98. <xsd:attribute name="cookie-lifetime" type="xsd:string" />
  99. <xsd:attribute name="cookie-path" type="xsd:string" />
  100. <xsd:attribute name="cookie-domain" type="xsd:string" />
  101. <xsd:attribute name="cookie-secure" type="cookie_secure" />
  102. <xsd:attribute name="cookie-httponly" type="xsd:boolean" />
  103. <xsd:attribute name="cookie-samesite" type="cookie_samesite" />
  104. <xsd:attribute name="use-cookies" type="xsd:boolean" />
  105. <xsd:attribute name="cache-limiter" type="xsd:string" />
  106. <xsd:attribute name="gc-maxlifetime" type="xsd:string" />
  107. <xsd:attribute name="gc-divisor" type="xsd:string" />
  108. <xsd:attribute name="gc-probability" type="xsd:string" />
  109. <xsd:attribute name="save-path" type="xsd:string" />
  110. <xsd:attribute name="metadata-update-threshold" type="xsd:nonNegativeInteger" />
  111. <xsd:attribute name="sid-length" type="sid_length" />
  112. <xsd:attribute name="sid-bits-per-character" type="sid_bits_per_character" />
  113. </xsd:complexType>
  114. <xsd:complexType name="request">
  115. <xsd:sequence>
  116. <xsd:element name="format" type="format" minOccurs="0" maxOccurs="unbounded" />
  117. </xsd:sequence>
  118. </xsd:complexType>
  119. <xsd:complexType name="format">
  120. <xsd:choice minOccurs="1" maxOccurs="unbounded">
  121. <xsd:element name="mime-type" type="xsd:string" />
  122. </xsd:choice>
  123. <xsd:attribute name="name" type="xsd:string" use="required"/>
  124. </xsd:complexType>
  125. <xsd:complexType name="assets">
  126. <xsd:sequence>
  127. <xsd:element name="base-url" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
  128. <xsd:element name="package" type="package" minOccurs="0" maxOccurs="unbounded" />
  129. </xsd:sequence>
  130. <xsd:attribute name="enabled" type="xsd:boolean" />
  131. <xsd:attribute name="base-path" type="xsd:string" />
  132. <xsd:attribute name="version-strategy" type="xsd:string" />
  133. <xsd:attribute name="version" type="xsd:string" />
  134. <xsd:attribute name="version-format" type="xsd:string" />
  135. <xsd:attribute name="json-manifest-path" type="xsd:string" />
  136. </xsd:complexType>
  137. <xsd:complexType name="package">
  138. <xsd:sequence>
  139. <xsd:element name="base-url" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
  140. </xsd:sequence>
  141. <xsd:attribute name="name" type="xsd:string" use="required" />
  142. <xsd:attribute name="base-path" type="xsd:string" />
  143. <xsd:attribute name="version-strategy" type="xsd:string" />
  144. <xsd:attribute name="version" type="xsd:string" />
  145. <xsd:attribute name="version-format" type="xsd:string" />
  146. <xsd:attribute name="json-manifest-path" type="xsd:string" />
  147. </xsd:complexType>
  148. <xsd:complexType name="translator">
  149. <xsd:sequence>
  150. <xsd:element name="fallback" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
  151. <xsd:element name="path" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
  152. <xsd:element name="enabled-locale" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
  153. <xsd:element name="pseudo-localization" type="pseudo_localization" minOccurs="0" maxOccurs="1" />
  154. </xsd:sequence>
  155. <xsd:attribute name="enabled" type="xsd:boolean" />
  156. <xsd:attribute name="fallback" type="xsd:string" />
  157. <xsd:attribute name="logging" type="xsd:boolean" />
  158. <xsd:attribute name="formatter" type="xsd:string" />
  159. <xsd:attribute name="cache-dir" type="xsd:string" />
  160. </xsd:complexType>
  161. <xsd:complexType name="pseudo_localization">
  162. <xsd:sequence>
  163. <xsd:element name="localizable-html-attribute" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
  164. </xsd:sequence>
  165. <xsd:attribute name="enabled" type="xsd:boolean" />
  166. <xsd:attribute name="accents" type="xsd:boolean" />
  167. <xsd:attribute name="expansion_factor" type="xsd:float" />
  168. <xsd:attribute name="brackets" type="xsd:boolean" />
  169. <xsd:attribute name="parse_html" type="xsd:boolean" />
  170. </xsd:complexType>
  171. <xsd:complexType name="validation">
  172. <xsd:choice minOccurs="0" maxOccurs="unbounded">
  173. <xsd:element name="static-method" type="xsd:string" />
  174. <xsd:element name="mapping" type="file_mapping" />
  175. <xsd:element name="auto-mapping" type="auto_mapping" />
  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="email-validation-mode" type="email-validation-mode" />
  184. </xsd:complexType>
  185. <xsd:complexType name="file_mapping">
  186. <xsd:sequence>
  187. <xsd:element name="path" type="xsd:string" minOccurs="1" maxOccurs="unbounded" />
  188. </xsd:sequence>
  189. </xsd:complexType>
  190. <xsd:complexType name="auto_mapping">
  191. <xsd:sequence>
  192. <xsd:element name="service" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
  193. </xsd:sequence>
  194. <xsd:attribute name="namespace" type="xsd:string" use="required" />
  195. </xsd:complexType>
  196. <xsd:simpleType name="email-validation-mode">
  197. <xsd:restriction base="xsd:string">
  198. <xsd:enumeration value="html5" />
  199. <xsd:enumeration value="loose" />
  200. <xsd:enumeration value="strict" />
  201. </xsd:restriction>
  202. </xsd:simpleType>
  203. <xsd:complexType name="annotations">
  204. <xsd:attribute name="cache" type="xsd:string" />
  205. <xsd:attribute name="debug" type="xsd:string" />
  206. <xsd:attribute name="file-cache-dir" type="xsd:string" />
  207. <xsd:attribute name="enabled" type="xsd:boolean" />
  208. </xsd:complexType>
  209. <xsd:complexType name="property_access">
  210. <xsd:attribute name="magic-call" type="xsd:boolean" />
  211. <xsd:attribute name="magic-get" type="xsd:boolean" />
  212. <xsd:attribute name="magic-set" type="xsd:boolean" />
  213. <xsd:attribute name="throw-exception-on-invalid-index" type="xsd:boolean" />
  214. <xsd:attribute name="throw-exception-on-invalid-property-path" type="xsd:boolean" />
  215. </xsd:complexType>
  216. <xsd:complexType name="serializer">
  217. <xsd:choice minOccurs="0" maxOccurs="unbounded">
  218. <xsd:element name="mapping" type="file_mapping" />
  219. </xsd:choice>
  220. <xsd:attribute name="enabled" type="xsd:boolean" />
  221. <xsd:attribute name="enable-annotations" type="xsd:boolean" />
  222. <xsd:attribute name="name-converter" type="xsd:string" />
  223. <xsd:attribute name="circular-reference-handler" type="xsd:string" />
  224. <xsd:attribute name="max-depth-handler" type="xsd:string" />
  225. </xsd:complexType>
  226. <xsd:complexType name="property_info">
  227. <xsd:attribute name="enabled" type="xsd:boolean" />
  228. </xsd:complexType>
  229. <xsd:complexType name="cache">
  230. <xsd:sequence>
  231. <xsd:element name="app" type="xsd:string" minOccurs="0" maxOccurs="1" />
  232. <xsd:element name="system" type="xsd:string" minOccurs="0" maxOccurs="1" />
  233. <xsd:element name="directory" type="xsd:string" minOccurs="0" maxOccurs="1" />
  234. <xsd:element name="default-doctrine-provider" type="xsd:string" minOccurs="0" maxOccurs="1" />
  235. <xsd:element name="default-psr6-provider" type="xsd:string" minOccurs="0" maxOccurs="1" />
  236. <xsd:element name="default-redis-provider" type="xsd:string" minOccurs="0" maxOccurs="1" />
  237. <xsd:element name="default-memcached-provider" type="xsd:string" minOccurs="0" maxOccurs="1" />
  238. <xsd:element name="default-pdo-provider" type="xsd:string" minOccurs="0" maxOccurs="1" />
  239. <xsd:element name="pool" type="cache_pool" minOccurs="0" maxOccurs="unbounded" />
  240. </xsd:sequence>
  241. <xsd:attribute name="prefix-seed" type="xsd:string" />
  242. </xsd:complexType>
  243. <xsd:complexType name="cache_pool">
  244. <xsd:sequence>
  245. <xsd:element name="adapter" type="cache_pool_adapter" minOccurs="0" maxOccurs="unbounded" />
  246. </xsd:sequence>
  247. <xsd:attribute name="name" type="xsd:string" use="required" />
  248. <xsd:attribute name="adapter" type="xsd:string" />
  249. <xsd:attribute name="tags" type="xsd:string" />
  250. <xsd:attribute name="public" type="xsd:boolean" />
  251. <xsd:attribute name="default-lifetime" type="xsd:string" />
  252. <xsd:attribute name="provider" type="xsd:string" />
  253. <xsd:attribute name="early-expiration-message-bus" type="xsd:string" />
  254. <xsd:attribute name="clearer" type="xsd:string" />
  255. </xsd:complexType>
  256. <xsd:complexType name="cache_pool_adapter">
  257. <xsd:attribute name="name" type="xsd:string" use="required" />
  258. <xsd:attribute name="provider" type="xsd:string" />
  259. </xsd:complexType>
  260. <xsd:complexType name="workflow">
  261. <xsd:sequence>
  262. <xsd:element name="initial-marking" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
  263. <xsd:element name="marking-store" type="marking_store" minOccurs="0" maxOccurs="1" />
  264. <xsd:element name="support" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
  265. <xsd:element name="event-to-dispatch" type="event_to_dispatch" minOccurs="0" maxOccurs="unbounded" />
  266. <xsd:element name="place" type="place" minOccurs="0" maxOccurs="unbounded" />
  267. <xsd:element name="transition" type="transition" minOccurs="0" maxOccurs="unbounded" />
  268. <xsd:element name="metadata" type="metadata" minOccurs="0" maxOccurs="unbounded" />
  269. </xsd:sequence>
  270. <xsd:attribute name="name" type="xsd:string" />
  271. <xsd:attribute name="type" type="workflow_type" />
  272. <xsd:attribute name="initial-place" type="xsd:string" />
  273. <xsd:attribute name="initial-marking" type="xsd:string" />
  274. <xsd:attribute name="support-strategy" type="xsd:string" />
  275. <xsd:attribute name="enabled" type="xsd:boolean" />
  276. </xsd:complexType>
  277. <xsd:complexType name="php-errors">
  278. <xsd:attribute name="log" type="xsd:string" />
  279. <xsd:attribute name="throw" type="xsd:boolean" />
  280. </xsd:complexType>
  281. <xsd:complexType name="marking_store">
  282. <xsd:sequence>
  283. <xsd:element name="argument" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
  284. </xsd:sequence>
  285. <xsd:attribute name="type" type="marking_store_type" />
  286. <xsd:attribute name="service" type="xsd:string" />
  287. <xsd:attribute name="property" type="xsd:string" />
  288. </xsd:complexType>
  289. <xsd:simpleType name="marking_store_type">
  290. <xsd:restriction base="xsd:string">
  291. <xsd:enumeration value="multiple_state" />
  292. <xsd:enumeration value="single_state" />
  293. <xsd:enumeration value="method" />
  294. </xsd:restriction>
  295. </xsd:simpleType>
  296. <xsd:complexType name="transition">
  297. <xsd:sequence>
  298. <xsd:element name="from" type="xsd:string" minOccurs="1" maxOccurs="unbounded" />
  299. <xsd:element name="to" type="xsd:string" minOccurs="1" maxOccurs="unbounded" />
  300. <xsd:element name="metadata" type="metadata" minOccurs="0" maxOccurs="unbounded" />
  301. <xsd:element name="guard" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
  302. </xsd:sequence>
  303. <xsd:attribute name="name" type="xsd:string" use="required" />
  304. </xsd:complexType>
  305. <xsd:complexType name="place" mixed="true">
  306. <xsd:sequence>
  307. <xsd:element name="metadata" type="metadata" minOccurs="0" maxOccurs="unbounded" />
  308. </xsd:sequence>
  309. <xsd:attribute name="name" type="xsd:string" />
  310. </xsd:complexType>
  311. <xsd:complexType name="metadata">
  312. <xsd:sequence>
  313. <xsd:any minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
  314. </xsd:sequence>
  315. </xsd:complexType>
  316. <xsd:simpleType name="event_to_dispatch">
  317. <xsd:restriction base="xsd:string">
  318. <xsd:enumeration value="" />
  319. <xsd:enumeration value="workflow.leave" />
  320. <xsd:enumeration value="workflow.transition" />
  321. <xsd:enumeration value="workflow.enter" />
  322. <xsd:enumeration value="workflow.entered" />
  323. <xsd:enumeration value="workflow.completed" />
  324. <xsd:enumeration value="workflow.announce" />
  325. </xsd:restriction>
  326. </xsd:simpleType>
  327. <xsd:simpleType name="default_middleware">
  328. <xsd:restriction base="xsd:string">
  329. <xsd:enumeration value="true" />
  330. <xsd:enumeration value="false" />
  331. <xsd:enumeration value="1" />
  332. <xsd:enumeration value="0" />
  333. <xsd:enumeration value="allow_no_handlers" />
  334. </xsd:restriction>
  335. </xsd:simpleType>
  336. <xsd:simpleType name="cookie_secure">
  337. <xsd:restriction base="xsd:string">
  338. <xsd:enumeration value="true" />
  339. <xsd:enumeration value="false" />
  340. <xsd:enumeration value="1" />
  341. <xsd:enumeration value="0" />
  342. <xsd:enumeration value="auto" />
  343. </xsd:restriction>
  344. </xsd:simpleType>
  345. <xsd:simpleType name="cookie_samesite">
  346. <xsd:restriction base="xsd:string">
  347. <xsd:enumeration value="" />
  348. <xsd:enumeration value="none" />
  349. <xsd:enumeration value="lax" />
  350. <xsd:enumeration value="strict" />
  351. </xsd:restriction>
  352. </xsd:simpleType>
  353. <xsd:simpleType name="sid_bits_per_character">
  354. <xsd:restriction base="xsd:positiveInteger">
  355. <xsd:enumeration value="4" />
  356. <xsd:enumeration value="5" />
  357. <xsd:enumeration value="6" />
  358. </xsd:restriction>
  359. </xsd:simpleType>
  360. <xsd:simpleType name="sid_length">
  361. <xsd:restriction base="xsd:positiveInteger">
  362. <xsd:minInclusive value="22" />
  363. <xsd:maxInclusive value="256" />
  364. </xsd:restriction>
  365. </xsd:simpleType>
  366. <xsd:simpleType name="workflow_type">
  367. <xsd:restriction base="xsd:string">
  368. <xsd:enumeration value="state_machine" />
  369. <xsd:enumeration value="workflow" />
  370. </xsd:restriction>
  371. </xsd:simpleType>
  372. <xsd:complexType name="lock">
  373. <xsd:sequence>
  374. <xsd:element name="resource" type="lock_resource" minOccurs="1" maxOccurs="unbounded" />
  375. </xsd:sequence>
  376. <xsd:attribute name="enabled" type="xsd:boolean" />
  377. </xsd:complexType>
  378. <xsd:complexType name="lock_resource">
  379. <xsd:simpleContent>
  380. <xsd:extension base="xsd:string">
  381. <xsd:attribute name="name" type="xsd:string" />
  382. </xsd:extension>
  383. </xsd:simpleContent>
  384. </xsd:complexType>
  385. <xsd:complexType name="messenger">
  386. <xsd:sequence>
  387. <xsd:element name="serializer" type="messenger_serializer" minOccurs="0" />
  388. <xsd:element name="routing" type="messenger_routing" minOccurs="0" maxOccurs="unbounded" />
  389. <xsd:element name="transport" type="messenger_transport" minOccurs="0" maxOccurs="unbounded" />
  390. <xsd:element name="bus" type="messenger_bus" minOccurs="0" maxOccurs="unbounded" />
  391. </xsd:sequence>
  392. <xsd:attribute name="default-bus" type="xsd:string" />
  393. <xsd:attribute name="enabled" type="xsd:boolean" />
  394. <xsd:attribute name="failure-transport" type="xsd:string" />
  395. </xsd:complexType>
  396. <xsd:complexType name="messenger_serializer">
  397. <xsd:sequence>
  398. <xsd:element name="symfony-serializer" type="messenger_symfony_serializer" minOccurs="0" />
  399. </xsd:sequence>
  400. <xsd:attribute name="default-serializer" type="xsd:string" />
  401. </xsd:complexType>
  402. <xsd:complexType name="messenger_symfony_serializer">
  403. <xsd:sequence>
  404. <xsd:element name="context" type="metadata" minOccurs="0" maxOccurs="unbounded" />
  405. </xsd:sequence>
  406. <xsd:attribute name="format" type="xsd:string" />
  407. </xsd:complexType>
  408. <xsd:complexType name="messenger_routing">
  409. <xsd:choice minOccurs="0" maxOccurs="unbounded">
  410. <xsd:element name="sender" type="messenger_routing_sender" />
  411. </xsd:choice>
  412. <xsd:attribute name="message-class" type="xsd:string" use="required"/>
  413. </xsd:complexType>
  414. <xsd:complexType name="messenger_routing_sender">
  415. <xsd:attribute name="service" type="xsd:string" use="required"/>
  416. </xsd:complexType>
  417. <xsd:complexType name="messenger_transport">
  418. <xsd:sequence>
  419. <xsd:element name="options" type="metadata" minOccurs="0" maxOccurs="unbounded" />
  420. <xsd:element name="retry-strategy" type="messenger_retry_strategy" minOccurs="0" maxOccurs="1" />
  421. </xsd:sequence>
  422. <xsd:attribute name="name" type="xsd:string" />
  423. <xsd:attribute name="serializer" type="xsd:string" />
  424. <xsd:attribute name="dsn" type="xsd:string" />
  425. </xsd:complexType>
  426. <xsd:complexType name="messenger_retry_strategy">
  427. <xsd:attribute name="service" type="xsd:string" />
  428. <xsd:attribute name="max-retries" type="xsd:integer" />
  429. <xsd:attribute name="delay" type="xsd:integer" />
  430. <xsd:attribute name="multiplier" type="xsd:float" />
  431. <xsd:attribute name="max-delay" type="xsd:float" />
  432. </xsd:complexType>
  433. <xsd:complexType name="messenger_bus">
  434. <xsd:sequence>
  435. <xsd:element name="middleware" type="messenger_middleware" minOccurs="0" maxOccurs="unbounded" />
  436. </xsd:sequence>
  437. <xsd:attribute name="name" type="xsd:string" use="required"/>
  438. <xsd:attribute name="default-middleware" type="default_middleware"/>
  439. </xsd:complexType>
  440. <xsd:complexType name="messenger_middleware">
  441. <xsd:sequence>
  442. <xsd:element name="argument" type="xsd:anyType" minOccurs="0" maxOccurs="unbounded" />
  443. </xsd:sequence>
  444. <xsd:attribute name="id" type="xsd:string" use="required"/>
  445. </xsd:complexType>
  446. <xsd:complexType name="http_client">
  447. <xsd:sequence>
  448. <xsd:element name="default-options" type="http_client_default_options" minOccurs="0" />
  449. <xsd:element name="scoped-client" type="http_client_scope_options" minOccurs="0" maxOccurs="unbounded" />
  450. </xsd:sequence>
  451. <xsd:attribute name="enabled" type="xsd:boolean" />
  452. <xsd:attribute name="max-host-connections" type="xsd:integer" />
  453. <xsd:attribute name="mock-response-factory" type="xsd:string" />
  454. </xsd:complexType>
  455. <xsd:complexType name="http_client_default_options" mixed="true">
  456. <xsd:choice maxOccurs="unbounded">
  457. <xsd:element name="resolve" type="http_resolve" minOccurs="0" maxOccurs="unbounded" />
  458. <xsd:element name="header" type="http_header" minOccurs="0" maxOccurs="unbounded" />
  459. <xsd:element name="peer-fingerprint" type="fingerprint" minOccurs="0" maxOccurs="unbounded" />
  460. <xsd:element name="retry-failed" type="http_client_retry_failed" minOccurs="0" maxOccurs="1" />
  461. </xsd:choice>
  462. <xsd:attribute name="max-redirects" type="xsd:integer" />
  463. <xsd:attribute name="http-version" type="xsd:string" />
  464. <xsd:attribute name="proxy" type="xsd:string" />
  465. <xsd:attribute name="no-proxy" type="xsd:string" />
  466. <xsd:attribute name="timeout" type="xsd:float" />
  467. <xsd:attribute name="max-duration" type="xsd:float" />
  468. <xsd:attribute name="bindto" type="xsd:string" />
  469. <xsd:attribute name="verify-peer" type="xsd:boolean" />
  470. <xsd:attribute name="verify-host" type="xsd:boolean" />
  471. <xsd:attribute name="cafile" type="xsd:string" />
  472. <xsd:attribute name="capath" type="xsd:string" />
  473. <xsd:attribute name="local-cert" type="xsd:string" />
  474. <xsd:attribute name="local-pk" type="xsd:string" />
  475. <xsd:attribute name="passphrase" type="xsd:string" />
  476. <xsd:attribute name="ciphers" type="xsd:string" />
  477. </xsd:complexType>
  478. <xsd:complexType name="http_client_scope_options" mixed="true">
  479. <xsd:choice maxOccurs="unbounded">
  480. <xsd:element name="query" type="http_query" minOccurs="0" maxOccurs="unbounded" />
  481. <xsd:element name="resolve" type="http_resolve" minOccurs="0" maxOccurs="unbounded" />
  482. <xsd:element name="header" type="http_header" minOccurs="0" maxOccurs="unbounded" />
  483. <xsd:element name="peer-fingerprint" type="fingerprint" minOccurs="0" maxOccurs="unbounded" />
  484. <xsd:element name="retry-failed" type="http_client_retry_failed" minOccurs="0" maxOccurs="1" />
  485. </xsd:choice>
  486. <xsd:attribute name="name" type="xsd:string" />
  487. <xsd:attribute name="scope" type="xsd:string" />
  488. <xsd:attribute name="base-uri" type="xsd:string" />
  489. <xsd:attribute name="auth-basic" type="xsd:string" />
  490. <xsd:attribute name="auth-bearer" type="xsd:string" />
  491. <xsd:attribute name="max-redirects" type="xsd:integer" />
  492. <xsd:attribute name="http-version" type="xsd:string" />
  493. <xsd:attribute name="proxy" type="xsd:string" />
  494. <xsd:attribute name="no-proxy" type="xsd:string" />
  495. <xsd:attribute name="timeout" type="xsd:float" />
  496. <xsd:attribute name="bindto" type="xsd:string" />
  497. <xsd:attribute name="verify-peer" type="xsd:boolean" />
  498. <xsd:attribute name="verify-host" type="xsd:boolean" />
  499. <xsd:attribute name="cafile" type="xsd:string" />
  500. <xsd:attribute name="capath" type="xsd:string" />
  501. <xsd:attribute name="local-cert" type="xsd:string" />
  502. <xsd:attribute name="local-pk" type="xsd:string" />
  503. <xsd:attribute name="passphrase" type="xsd:string" />
  504. <xsd:attribute name="ciphers" type="xsd:string" />
  505. </xsd:complexType>
  506. <xsd:complexType name="fingerprint">
  507. <xsd:choice maxOccurs="unbounded">
  508. <xsd:element name="pin-sha256" type="xsd:string" minOccurs="0" />
  509. <xsd:element name="sha1" type="xsd:string" minOccurs="0" />
  510. <xsd:element name="md5" type="xsd:string" minOccurs="0" />
  511. </xsd:choice>
  512. </xsd:complexType>
  513. <xsd:complexType name="http_client_retry_failed">
  514. <xsd:sequence>
  515. <xsd:element name="http-code" type="http_client_retry_code" minOccurs="0" maxOccurs="unbounded" />
  516. </xsd:sequence>
  517. <xsd:attribute name="enabled" type="xsd:boolean" />
  518. <xsd:attribute name="retry-strategy" type="xsd:string" />
  519. <xsd:attribute name="max-retries" type="xsd:integer" />
  520. <xsd:attribute name="delay" type="xsd:integer" />
  521. <xsd:attribute name="multiplier" type="xsd:float" />
  522. <xsd:attribute name="max-delay" type="xsd:float" />
  523. <xsd:attribute name="jitter" type="xsd:float" />
  524. <xsd:attribute name="response_header" type="xsd:boolean" />
  525. </xsd:complexType>
  526. <xsd:complexType name="http_client_retry_code">
  527. <xsd:sequence>
  528. <xsd:element name="method" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
  529. </xsd:sequence>
  530. <xsd:attribute name="code" type="xsd:integer" />
  531. </xsd:complexType>
  532. <xsd:complexType name="http_query" mixed="true">
  533. <xsd:attribute name="key" type="xsd:string" />
  534. </xsd:complexType>
  535. <xsd:complexType name="http_resolve" mixed="true">
  536. <xsd:attribute name="host" type="xsd:string" />
  537. </xsd:complexType>
  538. <xsd:complexType name="http_header" mixed="true">
  539. <xsd:attribute name="name" type="xsd:string" />
  540. </xsd:complexType>
  541. <xsd:complexType name="mailer">
  542. <xsd:sequence>
  543. <xsd:element name="transport" type="mailer_transport" minOccurs="0" maxOccurs="unbounded" />
  544. <xsd:element name="envelope" type="mailer_envelope" minOccurs="0" maxOccurs="1" />
  545. <xsd:element name="header" type="header" minOccurs="0" maxOccurs="unbounded" />
  546. </xsd:sequence>
  547. <xsd:attribute name="dsn" type="xsd:string" />
  548. <xsd:attribute name="message-bus" type="xsd:string" />
  549. </xsd:complexType>
  550. <xsd:complexType name="header" mixed="true">
  551. <xsd:attribute name="name" type="xsd:string" use="required" />
  552. </xsd:complexType>
  553. <xsd:complexType name="mailer_transport" mixed="true">
  554. <xsd:attribute name="name" type="xsd:string" use="required" />
  555. </xsd:complexType>
  556. <xsd:complexType name="mailer_envelope">
  557. <xsd:sequence>
  558. <xsd:element name="sender" type="xsd:string" minOccurs="0" maxOccurs="1" />
  559. <xsd:element name="recipients" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
  560. </xsd:sequence>
  561. </xsd:complexType>
  562. <xsd:complexType name="http_cache">
  563. <xsd:sequence>
  564. <xsd:element name="private-header" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
  565. </xsd:sequence>
  566. <xsd:attribute name="enabled" type="xsd:boolean" />
  567. <xsd:attribute name="debug" type="xsd:boolean" />
  568. <xsd:attribute name="trace-level" type="http_cache_trace_levels" />
  569. <xsd:attribute name="trace-header" type="xsd:string" />
  570. <xsd:attribute name="default-ttl" type="xsd:integer" />
  571. <xsd:attribute name="allow-reload" type="xsd:boolean" />
  572. <xsd:attribute name="allow-revalidate" type="xsd:boolean" />
  573. <xsd:attribute name="stale-while-revalidate" type="xsd:integer" />
  574. <xsd:attribute name="stale-if-error" type="xsd:integer" />
  575. </xsd:complexType>
  576. <xsd:simpleType name="http_cache_trace_levels">
  577. <xsd:restriction base="xsd:string">
  578. <xsd:enumeration value="none" />
  579. <xsd:enumeration value="short" />
  580. <xsd:enumeration value="full" />
  581. </xsd:restriction>
  582. </xsd:simpleType>
  583. <xsd:complexType name="rate_limiter">
  584. <xsd:sequence>
  585. <xsd:element name="limiter" type="rate_limiter_limiter" minOccurs="0" maxOccurs="unbounded" />
  586. </xsd:sequence>
  587. <xsd:attribute name="enabled" type="xsd:boolean" />
  588. <xsd:attribute name="max-host-connections" type="xsd:integer" />
  589. <xsd:attribute name="mock-response-factory" type="xsd:string" />
  590. </xsd:complexType>
  591. <xsd:complexType name="rate_limiter_limiter">
  592. <xsd:sequence>
  593. <xsd:element name="rate" type="rate_limiter_rate" minOccurs="0" />
  594. </xsd:sequence>
  595. <xsd:attribute name="name" type="xsd:string" />
  596. <xsd:attribute name="lock-factory" type="xsd:string" />
  597. <xsd:attribute name="storage-service" type="xsd:string" />
  598. <xsd:attribute name="cache-pool" type="xsd:string" />
  599. <xsd:attribute name="strategy" type="xsd:string" />
  600. <xsd:attribute name="limit" type="xsd:int" />
  601. <xsd:attribute name="interval" type="xsd:string" />
  602. </xsd:complexType>
  603. <xsd:complexType name="rate_limiter_rate">
  604. <xsd:attribute name="interval" type="xsd:string" />
  605. <xsd:attribute name="amount" type="xsd:int" />
  606. </xsd:complexType>
  607. </xsd:schema>