瀏覽代碼

[FrameworkBundle] Updting XSD file for new csrf_protection configuration format.

Ryan Weaver 14 年之前
父節點
當前提交
f73107cb9d
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7 1
      src/Symfony/Bundle/FrameworkBundle/Resources/config/schema/symfony-1.0.xsd

+ 7 - 1
src/Symfony/Bundle/FrameworkBundle/Resources/config/schema/symfony-1.0.xsd

@@ -16,10 +16,10 @@
             <xsd:element name="templating" type="templating" minOccurs="0" maxOccurs="1" />
             <xsd:element name="translator" type="translator" minOccurs="0" maxOccurs="1" />
             <xsd:element name="param-converter" type="param-converter" minOccurs="0" maxOccurs="1" />
+            <xsd:element name="csrf_protection" type="csrf_protection" minOccurs="0" maxOccurs="1" />
         </xsd:all>
 
         <xsd:attribute name="ide" type="xsd:string" />
-        <xsd:attribute name="csrf-secret" type="xsd:string" />
         <xsd:attribute name="charset" type="xsd:string" />
         <xsd:attribute name="error-handler" type="xsd:string" />
     </xsd:complexType>
@@ -78,4 +78,10 @@
 
     <xsd:complexType name="param-converter">
     </xsd:complexType>
+
+    <xsd:complexType name="csrf_protection">
+        <xsd:attribute name="enabled" type="xsd:boolean" />
+        <xsd:attribute name="field-name" type="xsd:string" />
+        <xsd:attribute name="secret" type="xsd:string" />
+    </xsd:complexType>
 </xsd:schema>