- Issue created by @adamps
Currently a mailer plugin is both a service and a plugin. The plugin part is only really used for collecting definitions. It is also currently used as a factory for creating the service, but it doesn't need to be like that.
SymfonyMailerServiceProvider
instead of setting a factory, add a tag mailer_instance
MailerPluginBase
to ComponentMailerBase
and remove the extending of PluginBase
MailerManager
to Discover the mailers by means of the tagActive
2.0
Code