Nicolas Grekas
307d172fe7
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
6d4dcadd66
[Form] update type of form $name arguments
2019-07-31 13:55:54 +02:00
Fabien Potencier
c0323bd24b
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
33a001e460
switched array() to []
2019-01-16 10:39:14 +01:00
David
a51b516997
Add a docblock for FormFactoryInterface
2018-12-09 17:12:38 +01:00
Nicolas Grekas
abca2d6fdc
[3.0] Clean Form, Validator, DowCrawler and some more
2015-10-02 19:05:43 +02:00
Bernhard Schussek
3d9e5de2b9
[Form] Deprecated FormTypeInterface::getName() and passing of type instances
2015-07-02 10:02:46 +02:00
Fabien Potencier
a693545324
fixed types in phpdocs
2014-04-16 08:51:57 +02:00
Alexander Kotynia
bf9382e6cd
[Form] Make exception handling consistent with other components
2013-04-20 00:34:27 +03:00
Bernhard Schussek
c8afa886cd
[Form] Removed deprecated code scheduled for removal in 2.3
2013-04-13 16:46:29 +02:00
Bernhard Schussek
19d8510288
[Form] Improved Form::add() and FormBuilder::add() to accept integers as field names
2012-12-18 11:56:22 +01:00
Bernhard Schussek
87ccb6adb9
[Form] Added entry point "Forms" for more convenient usage outside of Symfony
2012-07-30 11:41:38 +02:00
Bernhard Schussek
cd7835d8d2
[Form] Cached the form type hierarchy in order to improve performance
2012-07-13 20:39:30 +02:00
Fabien Potencier
d100ffaf76
fixed CS
2012-07-09 14:54:20 +02:00
Bernhard Schussek
1c4f632f60
[Form] Fixed API docs and usage of FormBuilderInterface instead of FormBuilder
2012-05-25 12:34:16 +02:00
Bernhard Schussek
877d8f7195
[Form] Reversed the order of $type and $name in FormFactory::createNamed[Builder]()
2012-05-25 12:34:16 +02:00
Tobias Schultze
5d1b3669c5
[Form] fix PhpDoc
2012-05-21 04:26:59 +02:00
Fabien Potencier
41621e42e9
fixed phpdoc @param alignment
2012-05-15 22:19:31 +02:00
Martin Hasoň
7cecb4e71e
[Form] added support for parent of FormBuilder
2012-02-02 10:09:50 +01:00
Pascal Borreli
824e48efa7
[Various] Fixed phpdoc
2011-05-29 23:33:36 +00:00
Victor Berchet
971aad0593
Merge branch 'master' into form-phpdoc-2
2011-05-15 19:24:09 +02:00
Bernhard Schussek
21013b930c
[Form] Improved test coverage of FormFactory and improved error handling
2011-05-13 18:29:18 +02:00
Bernhard Schussek
fdd18250b3
[Form] Added getType() to FormFactoryInterface
2011-05-13 17:16:36 +02:00
Victor Berchet
87a6fd0f99
[Form] phpDoc
2011-05-13 11:00:04 +02:00
Bernhard Schussek
a97366fbcb
[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
49dc836521
[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
7f2294395c
[Form] reverted the templating part to be similar to what we have today
2011-04-11 16:42:51 +02:00
Bernhard Schussek
c786fac303
[Form] Sample fix implementation of renderers
2011-03-26 16:03:34 +01:00
Bernhard Schussek
2a1e394352
[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
700c96e7fa
[Form] Moved FieldFactoryTest to FormFactoryTest and fixed it
2011-03-18 14:37:54 +01:00
Bernhard Schussek
9caaf0f3a3
[Form] Introduced FieldBuilder for field/form creation and made Field/Form mostly immutable
2011-03-18 12:50:26 +01:00
Bernhard Schussek
cb283d3783
[Form] Renamed 'key' to 'name'. Removed setKey() totally.
2011-03-17 11:03:10 +01:00
Bernhard Schussek
0bf566310c
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
5705f74bd0
[Form] Refactored FieldFactory and moved new implementation into the DIC. FormTest fails now.
2011-03-02 14:58:19 +01:00
Bernhard Schussek
8a6246bd06
[Form] Refactored contents of FormFactory into individual FieldConfig classes
2011-03-02 12:20:30 +01:00