This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/Form
Fabien Potencier c7ec49c624 merged branch lstrojny/feature/form-http-delete (PR #3159)
Commits
-------

0b7e2e0 Support for DELETE method in forms

Discussion
----------

[Form] Support DELETE HTTP verb

Bug fix: no
Feature addition: yes
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: none
Todo: -

As `Symfony\Component\HttpFoundation\Request` already support DELETE requests nicely by parsing the request for us, support for the HTTPs DELETE verb can be easily done.

---------------------------------------------------------------------------

by mvrhov at 2012-01-20T06:00:49Z

This is wrong. The body for DELETE method is supposed to be empty or if present ignored.
Also the DELETE is supposed to remove the resource identified by uri, so the same code as for GET should be executed.

---------------------------------------------------------------------------

by lstrojny at 2012-01-20T08:56:22Z

I don’t think that’s the case. The HTTP standard does not state explicitly that DELETE does not have a body. See this [StackOverflow thread](http://stackoverflow.com/questions/2539394/rest-http-delete-and-parameters)
2012-01-22 10:05:04 +01:00
..
Event fixed CS 2011-06-08 12:16:48 +02:00
Exception [Form] simplified previous merge and fixed unit test 2011-07-04 12:13:46 +02:00
Extension merged branch alexandresalome/fix-form-choice-translation-expanded (PR #3166) 2012-01-21 21:20:56 +01:00
Guess [DoctrineBridge] fixed some CS 2011-12-13 10:22:12 +01:00
Resources/config [Form] Made validation of form children configurable. Set the option "cascade_validation" to true if you need it. 2012-01-16 20:49:43 +01:00
Util merged 2.0 2012-01-11 15:47:52 +01:00
AbstractExtension.php Remove useless code 2011-07-04 14:08:20 +02:00
AbstractType.php [Form] Fixed a typo in AbstractType phpdoc 2011-08-13 13:43:13 +02:00
AbstractTypeExtension.php Merge branch 'master' into form-phpdoc-2 2011-05-15 19:24:09 +02:00
CallbackTransformer.php [Various] Fixed errors on PHPDocs exception names (TransformationFailedException) 2011-08-09 00:14:29 +02:00
CallbackValidator.php fixed CS 2011-06-08 12:16:48 +02:00
composer.json Revert "merged 2.0" 2012-01-08 20:43:02 +01:00
DataMapperInterface.php fixed CS 2011-06-08 12:16:48 +02:00
DataTransformerInterface.php [Various] Fixed errors on PHPDocs exception names (TransformationFailedException) 2011-08-09 00:14:29 +02:00
Form.php Support for DELETE method in forms 2012-01-20 01:04:31 +01:00
FormBuilder.php fixed some phpdoc 2012-01-11 15:46:50 +01:00
FormError.php [Form] Added FormError::getMessage() and use it in Form class 2011-11-29 18:26:32 +01:00
FormEvents.php removed the ON_ prefix for Form event names 2011-05-31 07:19:18 +02:00
FormExtensionInterface.php [Form] phpDoc 2011-05-13 11:00:04 +02:00
FormFactory.php [Form] Enable empty root form name 2012-01-07 15:13:48 +01:00
FormFactoryInterface.php [Various] Fixed phpdoc 2011-05-29 23:33:36 +00:00
FormInterface.php Added missing interface method and updated phpDoc param 2012-01-18 17:05:44 +11:00
FormTypeExtensionInterface.php fixed CS 2011-06-08 12:16:48 +02:00
FormTypeGuesserChain.php fixed CS 2011-06-08 12:16:48 +02:00
FormTypeGuesserInterface.php [DoctrineBridge] fixed some CS 2011-12-13 10:22:12 +01:00
FormTypeInterface.php fixed CS 2011-06-08 12:16:48 +02:00
FormValidatorInterface.php fixed CS 2011-06-08 12:16:48 +02:00
FormView.php [DoctrineBridge] fixed some CS 2011-12-13 10:22:12 +01:00
LICENSE added LICENSE files for the subtree repositories 2011-02-22 18:58:15 +01:00
README.md tweaked the README files 2011-12-18 14:22:28 +01:00
ReversedTransformer.php [Form] Fix the ReversedTransform class 2011-05-10 20:25:22 +02:00

Form Component

Form provides tools for defining forms, rendering and binding request data to related models. Furthermore it provides integration with the Validation component.

Resources

Silex integration:

https://github.com/fabpot/Silex/blob/master/src/Silex/Provider/FormServiceProvider.php

Unit tests:

https://github.com/symfony/symfony/tree/master/tests/Symfony/Tests/Component/Form

Documentation:

http://symfony.com/doc/2.0/book/forms.html