Alexander M. Turek
0a78dc0f6f
Fix some return type annotations.
2019-08-07 14:09:01 +02:00
Christian Flothmann
1a21ca7362
turn failed file uploads into form errors
2019-04-06 19:02:48 +02:00
Jules Pietri
56429a6f08
[Form] various minor fixes
2019-04-06 15:44:06 +02:00
Nicolas Grekas
b0a3208588
Apply php-cs-fixer rule for array_key_exists()
2019-02-23 16:06:07 +01:00
Christian Flothmann
bc4b0913b4
ignore _method forms in NativeRequestHandler
2019-02-04 19:34:59 +01:00
Fabien Potencier
33a001e460
switched array() to []
2019-01-16 10:39:14 +01:00
Jules Pietri
de40f5d07b
[Form] Minor fixes in docs and cs
2018-11-12 11:47:20 +01:00
Christophe Coevoet
04654cfeb3
Enable the fixer enforcing fully-qualified calls for compiler-optimized functions
2018-07-24 12:05:38 +02:00
Issei.M
faf5470fd5
[Form] Add phpdoc to RequestHandlerInterface::isFileUpload()
method
2017-11-20 18:59:30 +01:00
Christian Flothmann
f9e210cc7b
ensure that submitted data are uploaded files
2017-11-16 09:58:50 +01:00
Nicolas Grekas
0c9edaf336
[DI] minor docblock fixes
2017-10-24 13:40:19 +02:00
Abdellatif Ait boudad
c03164e4f9
[form] lazy trans post_max_size_message
.
2016-09-06 16:01:53 +01:00
James Halsall
289531f0d0
[Form] Skip CSRF validation on form when POST max size is exceeded
2016-08-15 15:45:25 -07:00
Fabien Potencier
554303e339
removed dots at the end of @param and @return
2016-06-28 08:24:06 +02:00
Nicolas Grekas
c1983cad4d
[2.3] Fix @link annotations
2015-04-10 20:54:05 +02:00
Vladimir Reznichenko
4abfabf8da
[2.3] Static Code Analysis for Components
2015-03-21 18:48:06 +01:00
Mikael Pajunen
9b3421f18a
[Form] NativeRequestHandler file handling fix
2015-02-25 09:33:49 +01:00
Fabien Potencier
ec82e32b13
bug #12170 [Form] fix form handling with OPTIONS request method (Tobion)
...
This PR was merged into the 2.3 branch.
Discussion
----------
[Form] fix form handling with OPTIONS request method
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #8282
| License | MIT
| Doc PR | -
The OPTIONS request is just handled as any other request method. And accoring to the spec, an options request can also contain a request body like a POST. This only applied when using the deprecated form processing with `$form->submit($request)`. The change also makes the handling consistent with the `handleRequest` behavior via https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Form/Extension/HttpFoundation/HttpFoundationRequestHandler.php
Commits
-------
28eabd8
[Form] fix form handling with unconventional request methods like OPTIONS
2014-11-02 02:03:36 +01:00
Disquedur
51312d31cc
Remove aligned '=>' and '='
2014-10-26 08:30:58 +01:00
Tobias Schultze
28eabd84f8
[Form] fix form handling with unconventional request methods like OPTIONS
2014-10-08 20:31:39 +02:00
Bernhard Schussek
759ae1a7a1
[Form] Moved POST_MAX_SIZE validation from FormValidator to request handler
2014-09-23 14:27:03 +02:00
rpg600
47802105d3
[Form] Add a form error if post_max_size has been reached.
2014-09-23 12:20:25 +02:00
Fabien Potencier
369aebf431
fixed CS
2014-09-22 10:32:35 +02:00
Fabien Potencier
d1d569bf7b
unified return null usages
2014-04-16 09:43:51 +02:00
Fabien Potencier
7f9a366529
removed unneeded use statements
2014-01-01 08:52:14 +01:00
Bernhard Schussek
cb5e765f58
[Form] Fixed: If a form is not present in a request, it is not automatically submitted
2013-08-01 17:20:43 +02:00
Bernhard Schussek
eabb7a17ed
[Form] Added support for PATCH requests
2013-04-25 16:09:14 +02:00
Bernhard Schussek
41b0127963
[Form] Deprecated bind() and isBound() in favor of submit() and isSubmitted()
2013-04-20 18:05:58 +02:00
Bernhard Schussek
ae7c3781b5
[Form] Renamed form processors to request handlers
2013-04-20 17:36:19 +02:00