Closed
Description
Q | A |
---|---|
Bug report? | no |
Feature request? | yes |
BC Break report? | no |
RFC? | yes |
Symfony version | - |
If you follow this article https://symfony.com/doc/current/form/create_form_type_extension.html you'll see that:
- In the
ImageTypeExtension
class, you must define which type are you extending with thegetExtendedType()
method. - When defining a service, you must repeat that information in the
extended_type
attribute of theform.type_extension
tag.
I have two proposals:
- Why repeat the information in the tag? Please remove this requirement. Thanks!
- I guess there will be some reasons for this but, why must I define the extended type in the
getExtendedType()
method instead of just extending the class of that type?