-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Closed
Labels
FormactionableClear and specific issues ready for anyone to take them.Clear and specific issues ready for anyone to take them.hasPRA Pull Request has already been submitted for this issue.A Pull Request has already been submitted for this issue.
Milestone
Description
As of Symfony 2.8, implementing the getName()
method of the FormTypeInterface()
is deprecated. Instead, form types should be referenced by their FQCN (which is quite easy as PHP supports the class
constant since 5.5). Additionally, you should now also not use the alias
attribute anymore when tagging your services as a form type using the form.type
tag.
More detailed information and examples can be found in the code PR (see symfony/symfony#15079) which has just been merged.
Metadata
Metadata
Assignees
Labels
FormactionableClear and specific issues ready for anyone to take them.Clear and specific issues ready for anyone to take them.hasPRA Pull Request has already been submitted for this issue.A Pull Request has already been submitted for this issue.
Type
Projects
Relationships
Development
Select code repository
Activity
javiereguiluz commentedon Aug 1, 2015
Given that Symfony 2.8 is designed for PHP 5.3.9 and up, docs should display both the short
::class
examples and the long/verbose alternatives for 5.3 and 5.4.xabbuh commentedon Aug 1, 2015
Indeed, that's a good hint, Javier!
feature #5834 Updated form aliases to FQCNs for forms in book and com…
weaverryan commentedon Nov 27, 2015
Please see #5909, for the second set of huge changes for this :)
feature #5909 More 2.8 form updates (weaverryan)
pfleu commentedon May 3, 2016
Does this mean you can't customize a form's name anymore ? I have custom prototype entry_rows for some collections that I would need to use from different forms, so I need to change the form's name.
8 remaining items