symfony-1.0.xsd 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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:all>
  9. <xsd:element name="csrf-protection" type="csrf_protection" minOccurs="0" maxOccurs="1" />
  10. <xsd:element name="esi" type="esi" minOccurs="0" maxOccurs="1" />
  11. <xsd:element name="profiler" type="profiler" minOccurs="0" maxOccurs="1" />
  12. <xsd:element name="router" type="router" minOccurs="0" maxOccurs="1" />
  13. <xsd:element name="session" type="session" minOccurs="0" maxOccurs="1" />
  14. <xsd:element name="templating" type="templating" minOccurs="0" maxOccurs="1" />
  15. <xsd:element name="translator" type="translator" minOccurs="0" maxOccurs="1" />
  16. <xsd:element name="validation" type="validation" minOccurs="0" maxOccurs="1" />
  17. </xsd:all>
  18. <xsd:attribute name="cache-warmer" type="cache_warmer" />
  19. <xsd:attribute name="charset" type="xsd:string" />
  20. <xsd:attribute name="error-handler" type="xsd:string" />
  21. <xsd:attribute name="exception-controller" type="xsd:string" />
  22. <xsd:attribute name="ide" type="xsd:string" />
  23. <xsd:attribute name="secret" type="xsd:string" />
  24. </xsd:complexType>
  25. <xsd:simpleType name="cache_warmer">
  26. <xsd:restriction base="xsd:string">
  27. <xsd:enumeration value="false" />
  28. <xsd:enumeration value="full" />
  29. <xsd:enumeration value="true" />
  30. </xsd:restriction>
  31. </xsd:simpleType>
  32. <xsd:complexType name="csrf_protection">
  33. <xsd:attribute name="enabled" type="xsd:boolean" />
  34. <xsd:attribute name="field-name" type="xsd:string" />
  35. </xsd:complexType>
  36. <xsd:complexType name="esi">
  37. <xsd:attribute name="enabled" type="xsd:boolean" />
  38. </xsd:complexType>
  39. <xsd:complexType name="param_converter">
  40. <xsd:attribute name="enabled" type="xsd:boolean" />
  41. </xsd:complexType>
  42. <xsd:complexType name="profiler">
  43. <xsd:all>
  44. <xsd:element name="matcher" type="profiler_matcher" minOccurs="0" maxOccurs="1" />
  45. </xsd:all>
  46. <xsd:attribute name="only-exceptions" type="xsd:string" />
  47. <xsd:attribute name="only-master-requests" type="xsd:string" />
  48. <xsd:attribute name="dsn" type="xsd:string" />
  49. <xsd:attribute name="username" type="xsd:string" />
  50. <xsd:attribute name="password" type="xsd:string" />
  51. <xsd:attribute name="lifetime" type="xsd:string" />
  52. </xsd:complexType>
  53. <xsd:complexType name="profiler_matcher">
  54. <xsd:attribute name="ip" type="xsd:string" />
  55. <xsd:attribute name="path" type="xsd:string" />
  56. <xsd:attribute name="service" type="xsd:string" />
  57. </xsd:complexType>
  58. <xsd:complexType name="router">
  59. <xsd:attribute name="cache-warmer" type="cache_warmer" />
  60. <xsd:attribute name="resource" type="xsd:string" />
  61. <xsd:attribute name="type" type="xsd:string" />
  62. </xsd:complexType>
  63. <xsd:complexType name="session">
  64. <xsd:attribute name="storage-id" type="xsd:string" />
  65. <xsd:attribute name="default-locale" type="xsd:string" />
  66. <xsd:attribute name="name" type="xsd:string" />
  67. <xsd:attribute name="lifetime" type="xsd:integer" />
  68. <xsd:attribute name="path" type="xsd:string" />
  69. <xsd:attribute name="domain" type="xsd:string" />
  70. <xsd:attribute name="secure" type="xsd:boolean" />
  71. <xsd:attribute name="httponly" type="xsd:boolean" />
  72. <xsd:attribute name="cache-limiter" type="xsd:string" />
  73. <xsd:attribute name="auto-start" type="xsd:boolean" />
  74. </xsd:complexType>
  75. <xsd:complexType name="templating">
  76. <xsd:sequence>
  77. <xsd:element name="loader" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
  78. <xsd:element name="engine" type="xsd:string" minOccurs="1" maxOccurs="unbounded" />
  79. <xsd:element name="assets-base-url" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
  80. <xsd:element name="package" type="package" minOccurs="0" maxOccurs="unbounded" />
  81. </xsd:sequence>
  82. <xsd:attribute name="assets-version" type="xsd:string" />
  83. <xsd:attribute name="cache" type="xsd:string" />
  84. <xsd:attribute name="cache-warmer" type="cache_warmer" />
  85. </xsd:complexType>
  86. <xsd:complexType name="package">
  87. <xsd:sequence>
  88. <xsd:element name="base-url" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
  89. </xsd:sequence>
  90. <xsd:attribute name="name" type="xsd:string" use="required" />
  91. <xsd:attribute name="version" type="xsd:string" />
  92. </xsd:complexType>
  93. <xsd:complexType name="translator">
  94. <xsd:attribute name="enabled" type="xsd:boolean" />
  95. <xsd:attribute name="fallback" type="xsd:string" />
  96. </xsd:complexType>
  97. <xsd:complexType name="validation">
  98. <xsd:attribute name="enabled" type="xsd:boolean" />
  99. <xsd:attribute name="cache" type="xsd:string" />
  100. <xsd:attribute name="enable-annotations" type="xsd:boolean" />
  101. </xsd:complexType>
  102. </xsd:schema>