Problem/Motivation

Symfony\Component\Mailer\Transport::getDefaultFactories() returns all the transport factories that are available on the system. In v1 we had code that called it.

In v2 I was copying #3379794: Add symfony mailer transports to Dependency Injection Container (mail delivery layer), however the feature was deferred to #3501138: Add support for 3rd-party symfony mailer transports. So we need to add the equivalent code back into this module.

Proposed resolution

Create MailerTransportServiceProvider that registers the default factories if they don't already exist.

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

adamps created an issue. See original summary.

adamps changed the visibility of the branch 3526632-default-transport-factories to hidden.

  • adamps committed 910412fe on 2.x
    Issue #3526632 by adamps: Add in default transport factories
    
adamps’s picture

Status: Active » Fixed

adamps changed the visibility of the branch 3526632-default-transport-factories2 to hidden.

adamps changed the visibility of the branch 3526632-default-transport-factories2 to active.

adamps’s picture

We can even autoconfigure and autowire. I didn't commit this however it's in the 3526632-default-transport-factories2 branch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.