8000 remove restriction on form methods · symfony/symfony@b9d766e · GitHub
[go: up one dir, main page]

Skip to content

Commit b9d766e

Browse files
committed
remove restriction on form methods
1 parent 2f212c8 commit b9d766e

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

src/Symfony/Component/Form/Extension/Core/Type/FormType.php

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,6 @@
2424

2525
class FormType extends BaseType
2626
{
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-
4027
private $propertyAccessor;
4128

4229
public function __construct(PropertyAccessorInterface $propertyAccessor = null)
@@ -198,14 +185,6 @@ public function configureOptions(OptionsResolver $resolver)
198185
$resolver->setAllowedTypes('label_attr', 'array');
199186
$resolver->setAllowedTypes('upload_max_size_message', array('callable'));
200187
$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-
});
209188
}
210189

211190
/**

0 commit comments

Comments
 (0)
0