Browse Source

Se agrego el csrf_protection = false para los test

Your Name 7 years ago
parent
commit
adda325d22
2 changed files with 4 additions and 2 deletions
  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
         ));
     }