-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
ImageTypeExtensionclass, you must define which type are you extending with thegetExtendedType()method. - When defining a service, you must repeat that information in the
extended_typeattribute of theform.type_extensiontag.
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?