浏览代码

Se agrego el csrf_protection = false para los test

Your Name 7 年之前
父节点
当前提交
adda325d22
共有 2 个文件被更改,包括 4 次插入2 次删除
  1. 2 1
      src/IPv4Bundle/Form/HostType.php
  2. 2 1
      src/IPv4Bundle/Form/HostTypeType.php

+ 2 - 1
src/IPv4Bundle/Form/HostType.php

@@ -27,7 +27,8 @@ class HostType extends AbstractType
     public function configureOptions(OptionsResolver $resolver)
     {
         $resolver->setDefaults(array(
-            'data_class' => 'IPv4Bundle\Entity\Host'
+            'data_class' => 'IPv4Bundle\Entity\Host',
+            'csrf_protection' => false
         ));
     }
 

+ 2 - 1
src/IPv4Bundle/Form/HostTypeType.php

@@ -22,7 +22,8 @@ class HostTypeType extends AbstractType
     public function configureOptions(OptionsResolver $resolver)
     {
         $resolver->setDefaults(array(
-            'data_class' => 'IPv4Bundle\Entity\HostType'
+            'data_class' => 'IPv4Bundle\Entity\HostType',
+            'csrf_protection' => false
         ));
     }