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('newAndEdit'), |
32 |
|
'csrf_protection' => true, |
33 |
|
'csrf_field_name' => 'csrf_token', |
34 |
|
)); |
35 |
|
} |
36 |
|
|
37 |
|
/** |
38 |
|
* @return string |
src/Application/Form/Type/User/PasswordType.php 1 location
|
@@ 43-51 (lines=9) @@
|
40 |
|
/** |
41 |
|
* @param OptionsResolverInterface $resolver |
42 |
|
*/ |
43 |
|
public function setDefaultOptions(OptionsResolverInterface $resolver) |
44 |
|
{ |
45 |
|
$resolver->setDefaults(array( |
46 |
|
'data_class' => 'Application\Entity\UserEntity', |
47 |
|
'validation_groups' => array('settingsPassword'), |
48 |
|
'csrf_protection' => true, |
49 |
|
'csrf_field_name' => 'csrf_token', |
50 |
|
)); |
51 |
|
} |
52 |
|
|
53 |
|
/** |
54 |
|
* @return string |
src/Application/Form/Type/User/RegisterType.php 1 location
|
@@ 60-68 (lines=9) @@
|
57 |
|
/** |
58 |
|
* @param OptionsResolverInterface $resolver |
59 |
|
*/ |
60 |
|
public function setDefaultOptions(OptionsResolverInterface $resolver) |
61 |
|
{ |
62 |
|
$resolver->setDefaults(array( |
63 |
|
'data_class' => 'Application\Entity\UserEntity', |
64 |
|
'validation_groups' => array('register'), |
65 |
|
'csrf_protection' => true, |
66 |
|
'csrf_field_name' => 'csrf_token', |
67 |
|
)); |
68 |
|
} |
69 |
|
|
70 |
|
/** |
71 |
|
* @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('newAndEdit'), |
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('newAndEdit'), |
74 |
|
'csrf_protection' => true, |
75 |
|
'csrf_field_name' => 'csrf_token', |
76 |
|
)); |
77 |
|
} |
78 |
|
|
79 |
|
/** |
80 |
|
* @return string |