symfony-1.0.xsd 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <xsd:schema xmlns="http://www.symfony-project.org/schema/dic/symfony"
  3. xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  4. targetNamespace="http://www.symfony-project.org/schema/dic/symfony"
  5. elementFormDefault="qualified">
  6. <xsd:element name="config" type="config" />
  7. <xsd:complexType name="config">
  8. <xsd:all>
  9. <xsd:element name="router" type="router" minOccurs="0" maxOccurs="1" />
  10. <xsd:element name="validation" type="validation" minOccurs="0" maxOccurs="1" />
  11. <xsd:element name="profiler" type="profiler" minOccurs="0" maxOccurs="1" />
  12. <xsd:element name="session" type="session" minOccurs="0" maxOccurs="1" />
  13. <xsd:element name="templating" type="templating" minOccurs="0" maxOccurs="1" />
  14. <xsd:element name="translator" type="translator" minOccurs="0" maxOccurs="1" />
  15. <xsd:element name="csrf-protection" type="csrf_protection" minOccurs="0" maxOccurs="1" />
  16. <xsd:element name="esi" type="esi" minOccurs="0" maxOccurs="1" />
  17. </xsd:all>
  18. <xsd:attribute name="ide" type="xsd:string" />
  19. <xsd:attribute name="charset" type="xsd:string" />
  20. <xsd:attribute name="error-handler" type="xsd:string" />
  21. <xsd:attribute name="cache-warmer" type="cache_warmer" />
  22. </xsd:complexType>
  23. <xsd:simpleType name="cache_warmer">
  24. <xsd:restriction base="xsd:string">
  25. <xsd:enumeration value="false" />
  26. <xsd:enumeration value="true" />
  27. <xsd:enumeration value="full" />
  28. </xsd:restriction>
  29. </xsd:simpleType>
  30. <xsd:complexType name="profiler">
  31. <xsd:all>
  32. <xsd:element name="matcher" type="profiler_matcher" minOccurs="0" maxOccurs="1" />
  33. </xsd:all>
  34. </xsd:complexType>
  35. <xsd:complexType name="profiler_matcher">
  36. <xsd:attribute name="ip" type="xsd:string" />
  37. <xsd:attribute name="path" type="xsd:string" />
  38. <xsd:attribute name="service" type="xsd:string" />
  39. </xsd:complexType>
  40. <xsd:complexType name="router">
  41. <xsd:attribute name="resource" type="xsd:string" />
  42. <xsd:attribute name="type" type="xsd:string" />
  43. <xsd:attribute name="cache-warmer" type="cache_warmer" />
  44. </xsd:complexType>
  45. <xsd:complexType name="validation">
  46. <xsd:attribute name="enabled" type="xsd:boolean" />
  47. <xsd:attribute name="annotations" type="xsd:boolean" />
  48. </xsd:complexType>
  49. <xsd:complexType name="session">
  50. <xsd:attribute name="class" type="xsd:string" />
  51. <xsd:attribute name="storage-id" type="xsd:string" />
  52. <xsd:attribute name="default-locale" type="xsd:string" />
  53. <xsd:attribute name="name" type="xsd:string" />
  54. <xsd:attribute name="lifetime" type="xsd:integer" />
  55. <xsd:attribute name="path" type="xsd:string" />
  56. <xsd:attribute name="domain" type="xsd:string" />
  57. <xsd:attribute name="secure" type="xsd:string" />
  58. <xsd:attribute name="httponly" type="xsd:string" />
  59. <xsd:attribute name="cache-limiter" type="xsd:string" />
  60. <xsd:attribute name="auto-start" type="xsd:boolean" />
  61. <xsd:attribute name="pdo.db-table" type="xsd:string" />
  62. </xsd:complexType>
  63. <xsd:complexType name="templating">
  64. <xsd:sequence>
  65. <xsd:element name="loader" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
  66. <xsd:element name="engine" type="templating_engine" minOccurs="1" maxOccurs="unbounded" />
  67. </xsd:sequence>
  68. <xsd:attribute name="assets-version" type="xsd:string" />
  69. <xsd:attribute name="assets-base-urls" type="xsd:string" />
  70. <xsd:attribute name="cache" type="xsd:string" />
  71. <xsd:attribute name="cache-warmer" type="cache_warmer" />
  72. </xsd:complexType>
  73. <xsd:complexType name="translator">
  74. <xsd:attribute name="fallback" type="xsd:string" />
  75. </xsd:complexType>
  76. <xsd:complexType name="csrf_protection">
  77. <xsd:attribute name="enabled" type="xsd:boolean" />
  78. <xsd:attribute name="field-name" type="xsd:string" />
  79. <xsd:attribute name="secret" type="xsd:string" />
  80. </xsd:complexType>
  81. <xsd:complexType name="esi">
  82. <xsd:attribute name="enabled" type="xsd:boolean" />
  83. </xsd:complexType>
  84. <xsd:complexType name="templating_engine">
  85. <xsd:attribute name="id" type="xsd:string" />
  86. </xsd:complexType>
  87. </xsd:schema>