Yonel Ceruto
4a374b6a6b
Add FormFlow for multistep forms management
2025-10-17 10:25:00 +02:00
Nicolas Grekas
9e219122ae
Revert "minor #61697 [Form] Add better type information using PHPDoc (azjezz)"
...
This reverts commit 615b0e972a52935a853b14881954aef3ecf5ef82, reversing
changes made to 4f4a40aab22068f76b39e90181de203c869a95f3.
2025-09-18 13:45:49 +02:00
azjezz
acad9a3622
chore(form): add better type information using phpdoc
...
Signed-off-by: azjezz <azjezz@protonmail.com >
2025-09-09 08:28:44 +01:00
Nicolas Grekas
1c1dce12b4
Merge branch '5.4' into 6.0
...
* 5.4:
[Serializer] cs fix
Cleanup more `@return` annotations
[Form] Fix phpdoc on FormBuilderInterface
2021-08-17 17:35:52 +02:00
Nicolas Grekas
be4ba59ae2
Cleanup more @return annotations
2021-08-17 16:20:01 +02:00
Nicolas Grekas
00aeda6dd3
Add return types - batch 6/n
2021-08-16 17:45:02 +02:00
Alexander M. Turek
d4a85abe31
Merge branch '5.4' into 6.0
...
* 5.4:
[Form] Backport type fixes
[ExpressionLanguage] Store compiler and evaluator as closures
[Finder] Fix iterator return types
[DependencyInjection] Support for intersection types
2021-07-15 14:28:40 +02:00
Alexander M. Turek
8f0fa124f2
Merge branch '4.4' into 5.2
...
* 4.4:
[Form] Backport type fixes
[Finder] Fix iterator return types
[DependencyInjection] Support for intersection types
2021-07-15 14:19:23 +02:00
Alexander M. Turek
c8405e8bdc
[Form] Backport type fixes
...
Signed-off-by: Alexander M. Turek <me@derrabus.de >
2021-07-15 14:00:28 +02:00
Nicolas Grekas
c3d0fd33ed
[Form] add union types
2021-07-07 15:31:34 +02:00
Nicolas Grekas
a67a81c19f
Merge branch '4.4'
...
* 4.4:
Remove superfluous phpdoc tags
2019-08-14 14:45:29 +02:00
Valentin
c46149559a
[Form] Add parameter type declarations
2019-08-13 09:00:05 +02:00
Fabien Potencier
60d5d61f9e
Remove unneeded phpdocs
2019-08-08 11:37:48 +02:00
Nicolas Grekas
6c3c3be3a4
Merge branch '3.4' into 4.3
...
* 3.4:
[Form] update type of form $name arguments
2019-07-31 17:03:18 +02:00
Nicolas Grekas
4e4e1eb4b3
[Form] update type of form $name arguments
2019-07-31 13:55:54 +02:00
Fabien Potencier
9f97ec0c4d
Merge branch '4.1' into 4.2
...
* 4.1:
fixed tests
fixed CS
fixed CS
fixed CS
fixed short array CS in comments
fixed CS in ExpressionLanguage fixtures
fixed CS in generated files
fixed CS on generated container files
fixed CS on Form PHP templates
fixed CS on YAML fixtures
fixed fixtures
switched array() to []
2019-01-16 21:31:39 +01:00
Fabien Potencier
9e00d61b06
switched array() to []
2019-01-16 10:39:14 +01:00
David
51f8c39340
Add a docblock for FormFactoryInterface
2018-12-09 17:12:38 +01:00
Nicolas Grekas
432dcc194d
[3.0] Clean Form, Validator, DowCrawler and some more
2015-10-02 19:05:43 +02:00
Bernhard Schussek
3b14634489
[Form] Deprecated FormTypeInterface::getName() and passing of type instances
2015-07-02 10:02:46 +02:00
Fabien Potencier
cf2f0273da
fixed types in phpdocs
2014-04-16 08:51:57 +02:00
Alexander Kotynia
d448780fc0
[Form] Make exception handling consistent with other components
2013-04-20 00:34:27 +03:00
Bernhard Schussek
54d2d72e5f
[Form] Removed deprecated code scheduled for removal in 2.3
2013-04-13 16:46:29 +02:00
Bernhard Schussek
dbc9286fee
[Form] Improved Form::add() and FormBuilder::add() to accept integers as field names
2012-12-18 11:56:22 +01:00
Bernhard Schussek
bf274bbcdb
[Form] Added entry point "Forms" for more convenient usage outside of Symfony
2012-07-30 11:41:38 +02:00
Bernhard Schussek
3bcb64f5c5
[Form] Cached the form type hierarchy in order to improve performance
2012-07-13 20:39:30 +02:00
Fabien Potencier
57d3b508c1
fixed CS
2012-07-09 14:54:20 +02:00
Bernhard Schussek
130ec5056c
[Form] Fixed API docs and usage of FormBuilderInterface instead of FormBuilder
2012-05-25 12:34:16 +02:00
Bernhard Schussek
6d2fc5b9ab
[Form] Reversed the order of $type and $name in FormFactory::createNamed[Builder]()
2012-05-25 12:34:16 +02:00
Tobias Schultze
fae4396a8a
[Form] fix PhpDoc
2012-05-21 04:26:59 +02:00
Fabien Potencier
e5dde8cc08
fixed phpdoc @param alignment
2012-05-15 22:19:31 +02:00
Martin Hasoň
ae1eefef8c
[Form] added support for parent of FormBuilder
2012-02-02 10:09:50 +01:00
Pascal Borreli
84f81f6f41
[Various] Fixed phpdoc
2011-05-29 23:33:36 +00:00
Victor Berchet
c4fffc4658
Merge branch 'master' into form-phpdoc-2
2011-05-15 19:24:09 +02:00
Bernhard Schussek
796991bf9d
[Form] Improved test coverage of FormFactory and improved error handling
2011-05-13 18:29:18 +02:00
Bernhard Schussek
556203a0dc
[Form] Added getType() to FormFactoryInterface
2011-05-13 17:16:36 +02:00
Victor Berchet
35d9e23697
[Form] phpDoc
2011-05-13 11:00:04 +02:00
Bernhard Schussek
3e321fad1c
[Form] Split signature of FormFactory::create() into create() and createNamed()
...
The data can now be passed to all creation methods:
$form = $factory->create('form', $data);
By default, a form will receive the name of its type ("form" in above example). If you wish to pass a custom name, use createNamed():
$form = $factory->createNamed('form', 'myform', $data);
2011-04-22 10:42:21 +02:00
Fabien Potencier
28b55c25c6
[Form] moved the template context creation to the Form class
...
Moving the template context creation makes sense and allows for simpler code for the end user:
Before:
return array('post' => $post, 'form' => $this->get('form.factory')->createTemplateContext($form));
After:
return array('post' => $post, 'form' => $form->getContext());
2011-04-13 09:31:13 +02:00
Fabien Potencier
5c2f73ef70
[Form] reverted the templating part to be similar to what we have today
2011-04-11 16:42:51 +02:00
Bernhard Schussek
88bc175322
[Form] Sample fix implementation of renderers
2011-03-26 16:03:34 +01:00
Bernhard Schussek
cbec9ee00e
[Form] Renamed field configs to types. Everywhere else, we are referring to the name of the type as 'type' now (was 'identifier')
2011-03-18 16:20:00 +01:00
Bernhard Schussek
af5be22502
[Form] Moved FieldFactoryTest to FormFactoryTest and fixed it
2011-03-18 14:37:54 +01:00
Bernhard Schussek
e87b7c15b2
[Form] Introduced FieldBuilder for field/form creation and made Field/Form mostly immutable
2011-03-18 12:50:26 +01:00
Bernhard Schussek
2b73350d6e
[Form] Renamed 'key' to 'name'. Removed setKey() totally.
2011-03-17 11:03:10 +01:00
Bernhard Schussek
3fe1018447
Merge branch 'event-manager' into experimental
...
Conflicts:
src/Symfony/Component/Form/BirthdayField.php
src/Symfony/Component/Form/CheckboxField.php
src/Symfony/Component/Form/ChoiceField.php
src/Symfony/Component/Form/ChoiceList/TimeZoneChoiceList.php
src/Symfony/Component/Form/CollectionField.php
src/Symfony/Component/Form/DateField.php
src/Symfony/Component/Form/DateTimeField.php
src/Symfony/Component/Form/EntityChoiceField.php
src/Symfony/Component/Form/Events.php
src/Symfony/Component/Form/FieldFactory/FieldFactory.php
src/Symfony/Component/Form/FieldFactory/FieldFactoryInterface.php
src/Symfony/Component/Form/FileField.php
src/Symfony/Component/Form/Filters.php
src/Symfony/Component/Form/FormContext.php
src/Symfony/Component/Form/FormContextInterface.php
src/Symfony/Component/Form/FormFactoryInterface.php
src/Symfony/Component/Form/HybridField.php
src/Symfony/Component/Form/IntegerField.php
src/Symfony/Component/Form/LanguageField.php
src/Symfony/Component/Form/LocaleField.php
src/Symfony/Component/Form/MoneyField.php
src/Symfony/Component/Form/NumberField.php
src/Symfony/Component/Form/PasswordField.php
src/Symfony/Component/Form/PercentField.php
src/Symfony/Component/Form/RepeatedField.php
src/Symfony/Component/Form/TextField.php
src/Symfony/Component/Form/TimeField.php
src/Symfony/Component/Form/ToggleField.php
src/Symfony/Component/Form/UrlField.php
src/Symfony/Component/HttpFoundation/File/UploadedFile.php
tests/Symfony/Tests/Component/Form/FileFieldTest.php
tests/Symfony/Tests/Component/Form/FormContextTest.php
tests/Symfony/Tests/Component/Form/HiddenFieldTest.php
2011-03-13 21:04:24 +01:00
Bernhard Schussek
86829c2f76
[Form] Refactored FieldFactory and moved new implementation into the DIC. FormTest fails now.
2011-03-02 14:58:19 +01:00
Bernhard Schussek
f690ac8f48
[Form] Refactored contents of FormFactory into individual FieldConfig classes
2011-03-02 12:20:30 +01:00