src/Application/Form/Type/PostMetaType.php 1 location
|
@@ 27-35 (lines=9) @@
|
| 24 |
|
/** |
| 25 |
|
* @param OptionsResolverInterface $resolver |
| 26 |
|
*/ |
| 27 |
|
public function setDefaultOptions(OptionsResolverInterface $resolver) |
| 28 |
|
{ |
| 29 |
|
$resolver->setDefaults(array( |
| 30 |
|
'data_class' => 'Application\Entity\PostMetaEntity', |
| 31 |
|
'validation_groups' => array('new_and_edit'), |
| 32 |
|
'csrf_protection' => true, |
| 33 |
|
'csrf_field_name' => 'csrf_token', |
| 34 |
|
)); |
| 35 |
|
} |
| 36 |
|
|
| 37 |
|
/** |
| 38 |
|
* @return string |
src/Application/Form/Type/PostType.php 1 location
|
@@ 73-81 (lines=9) @@
|
| 70 |
|
/** |
| 71 |
|
* @param OptionsResolverInterface $resolver |
| 72 |
|
*/ |
| 73 |
|
public function setDefaultOptions(OptionsResolverInterface $resolver) |
| 74 |
|
{ |
| 75 |
|
$resolver->setDefaults(array( |
| 76 |
|
'data_class' => 'Application\Entity\PostEntity', |
| 77 |
|
'validation_groups' => array('new_and_edit'), |
| 78 |
|
'csrf_protection' => true, |
| 79 |
|
'csrf_field_name' => 'csrf_token', |
| 80 |
|
)); |
| 81 |
|
} |
| 82 |
|
|
| 83 |
|
/** |
| 84 |
|
* @return string |
src/Application/Form/Type/ProfileType.php 1 location
|
@@ 69-77 (lines=9) @@
|
| 66 |
|
/** |
| 67 |
|
* @param OptionsResolverInterface $resolver |
| 68 |
|
*/ |
| 69 |
|
public function setDefaultOptions(OptionsResolverInterface $resolver) |
| 70 |
|
{ |
| 71 |
|
$resolver->setDefaults(array( |
| 72 |
|
'data_class' => 'Application\Entity\ProfileEntity', |
| 73 |
|
'validation_groups' => array('new_and_edit'), |
| 74 |
|
'csrf_protection' => true, |
| 75 |
|
'csrf_field_name' => 'csrf_token', |
| 76 |
|
)); |
| 77 |
|
} |
| 78 |
|
|
| 79 |
|
/** |
| 80 |
|
* @return string |
src/Application/Form/Type/User/PasswordType.php 1 location
|
@@ 51-59 (lines=9) @@
|
| 48 |
|
/** |
| 49 |
|
* @param OptionsResolverInterface $resolver |
| 50 |
|
*/ |
| 51 |
|
public function setDefaultOptions(OptionsResolverInterface $resolver) |
| 52 |
|
{ |
| 53 |
|
$resolver->setDefaults(array( |
| 54 |
|
'data_class' => 'Application\Entity\UserEntity', |
| 55 |
|
'validation_groups' => array('settings_password'), |
| 56 |
|
'csrf_protection' => true, |
| 57 |
|
'csrf_field_name' => 'csrf_token', |
| 58 |
|
)); |
| 59 |
|
} |
| 60 |
|
|
| 61 |
|
/** |
| 62 |
|
* @return string |
src/Application/Form/Type/User/RegisterType.php 1 location
|
@@ 69-77 (lines=9) @@
|
| 66 |
|
/** |
| 67 |
|
* @param OptionsResolverInterface $resolver |
| 68 |
|
*/ |
| 69 |
|
public function setDefaultOptions(OptionsResolverInterface $resolver) |
| 70 |
|
{ |
| 71 |
|
$resolver->setDefaults(array( |
| 72 |
|
'data_class' => 'Application\Entity\UserEntity', |
| 73 |
|
'validation_groups' => array('register'), |
| 74 |
|
'csrf_protection' => true, |
| 75 |
|
'csrf_field_name' => 'csrf_token', |
| 76 |
|
)); |
| 77 |
|
} |
| 78 |
|
|
| 79 |
|
/** |
| 80 |
|
* @return string |