File tree 1 file changed +0
-21
lines changed
src/Symfony/Component/Form/Extension/Core/Type
1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change 24
24
25
25
class FormType extends BaseType
26
26
{
27
- /**
28
- * The accepted request methods.
29
- *
30
- * @var array
31
- */
32
- private const ALLOWED_METHODS = array (
33
- 'GET ' ,
34
- 'PUT ' ,
35
- 'POST ' ,
36
- 'DELETE ' ,
37
- 'PATCH ' ,
38
- );
39
-
40
27
private $ propertyAccessor ;
41
28
42
29
public function __construct (PropertyAccessorInterface $ propertyAccessor = null )
@@ -198,14 +185,6 @@ public function configureOptions(OptionsResolver $resolver)
198
185
$ resolver ->setAllowedTypes ('label_attr ' , 'array ' );
199
186
$ resolver ->setAllowedTypes ('upload_max_size_message ' , array ('callable ' ));
200
187
$ resolver ->setAllowedTypes ('help ' , array ('string ' , 'null ' ));
201
-
202
- $ resolver ->setAllowedValues ('method ' , function ($ value ) {
203
- return \in_array (\strtoupper ($ value ), self ::ALLOWED_METHODS );
204
- });
205
-
206
- $ resolver ->setNormalizer ('method ' , function (Options $ options , string $ value ): string {
207
- return \strtoupper ($ value );
208
- });
209
188
}
210
189
211
190
/**
You can’t perform that action at this time.
0 commit comments