我想重写flexk mailer bundle的EmailType
I tried
use LexikBundleMailerBundleFormTypeEmailType as BaseType;
use SymfonyComponentFormExtensionCoreTypeChoiceType;
/**
* @author Laurent Heurtault <l.heurtault@lexik.fr>
* @author Yoann Aparici <y.aparici@lexik.fr>
*/
class EmailType extends BaseType
{
...
}
并把它放在我的bundle MailingBundle/Form/Type/EmailType.php的相同路径中但它似乎不起作用。
我可以做一些比这更多的东西吗?
提前感谢。
您可以将Form Type类重新定义为参数,例如:
parameters:
lexik_mailer.form.type.mailer_email.class: AppBundleFormMyEmailFormType
希望对您有所帮助