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/tests/Symfony/Tests/Component/Form
Bernhard Schussek a28151a8af [Form] Removed FormFactory and improved the form instantiation process
With the form factory there was no reasonable way to implement instantiation of custom form classes. So the implementation was changed to let the classes instantiate themselves. A FormContext instance with default settings has to be passed to the creation method. This context is by default configured in the DI container.

	$context = $this->get('form.context');
	// or
	$context = FormContext::buildDefault();
	$form = MyFormClass::create($context, 'author');

If you want to circumvent this process, you can also create a form manually. Remember that the services stored in the default context won't be available then unless you pass them explicitely.

	$form = new MyFormClass('author');
2011-02-01 15:27:12 +01:00
..
CsrfProvider [Form][Validator] Fixed indentation 2011-01-26 10:36:10 +01:00
FieldFactory [Form] Changed semantics of a "bound" form 2011-02-01 15:27:12 +01:00
Fixtures [Form] Merged classes FieldGroup and Form for simplicity 2011-02-01 15:27:12 +01:00
ValueTransformer [Form] Removed automatic distribution of the locale in the Form component. This leads to more problems than it solves. 2011-02-01 15:27:12 +01:00
ChoiceFieldTest.php [Form] Changed semantics of a "bound" form 2011-02-01 15:27:12 +01:00
CollectionFieldTest.php [Form] Changed semantics of a "bound" form 2011-02-01 15:27:12 +01:00
CountryFieldTest.php [Form] Removed automatic distribution of the locale in the Form component. This leads to more problems than it solves. 2011-02-01 15:27:12 +01:00
DateFieldTest.php [Form] Changed semantics of a "bound" form 2011-02-01 15:27:12 +01:00
DateTimeFieldTest.php [Form] Changed semantics of a "bound" form 2011-02-01 15:27:12 +01:00
DateTimeTestCase.php normalized license messages in PHP files 2011-01-18 08:07:46 +01:00
DoctrineOrmTestCase.php [Form] Moved Doctrine2 specific files 2011-02-01 15:27:12 +01:00
EntityChoiceFieldTest.php [Form] Changed semantics of a "bound" form 2011-02-01 15:27:12 +01:00
FieldTest.php [Form] Changed semantics of a "bound" form 2011-02-01 15:27:12 +01:00
FileFieldTest.php [Form] Changed semantics of a "bound" form 2011-02-01 15:27:12 +01:00
FormContextTest.php [Form] Removed FormFactory and improved the form instantiation process 2011-02-01 15:27:12 +01:00
FormTest.php [Form] Changed semantics of a "bound" form 2011-02-01 15:27:12 +01:00
HiddenFieldTest.php normalized license messages in PHP files 2011-01-18 08:07:46 +01:00
IntegerFieldTest.php [Form] Changed semantics of a "bound" form 2011-02-01 15:27:12 +01:00
LanguageFieldTest.php [Form] Removed automatic distribution of the locale in the Form component. This leads to more problems than it solves. 2011-02-01 15:27:12 +01:00
LocaleFieldTest.php [Form] Removed automatic distribution of the locale in the Form component. This leads to more problems than it solves. 2011-02-01 15:27:12 +01:00
LocalizedTestCase.php normalized license messages in PHP files 2011-01-18 08:07:46 +01:00
PasswordFieldTest.php [Form] Changed semantics of a "bound" form 2011-02-01 15:27:12 +01:00
PropertyPathTest.php normalized license messages in PHP files 2011-01-18 08:07:46 +01:00
RepeatedFieldTest.php [Form] Changed semantics of a "bound" form 2011-02-01 15:27:12 +01:00
TimeFieldTest.php [Form] Changed semantics of a "bound" form 2011-02-01 15:27:12 +01:00
TimezoneFieldTest.php [Form] Moved option 'empty_value' to ChoiceField. An empty value is displayed if the field is not required. 2011-01-28 09:22:06 +01:00
UrlFieldTest.php [Form] Changed semantics of a "bound" form 2011-02-01 15:27:12 +01:00