Mailer classes don't need to be plugins

Created on 24 August 2025, 12 days ago

Problem/Motivation

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.

Proposed resolution

  1. In SymfonyMailerServiceProvider instead of setting a factory, add a tag mailer_instance
  2. Change the service file to name the mailer class in the normal way
  3. Rename MailerPluginBase to ComponentMailerBase and remove the extending of PluginBase
  4. Change MailerManager to Discover the mailers by means of the tag

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom adamps

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024