Problem/Motivation
The advancedqueue_mail_symfony_mailer submodule references the email_factory service (and Drupal\symfony_mailer\EmailFactoryInterface) which was removed in Symfony Mailer 2.x. This causes a fatal error.
Steps to reproduce
1. Install drupal/advancedqueue_mail:1.0.0 with drupal/symfony_mailer:2.0.1
2. Enable the advancedqueue_mail_symfony_mailer module
3. Run drush cr or access the web server
4. get The service "advancedqueue_mail.mail_sender" has a dependency on a non-existent service "email_factory
Proposed resolution
Update to use the new Symfony Mailer 2.x API (Drupal\symfony_mailer\MailerPlusInterface or equivalent) instead of the removed EmailFactoryInterface / email_factory service. The service provider and SymfonyMailerMailSender class need to be updated to align with the 2.x service container.
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork advancedqueue_mail-3592374
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
Comment #2
aren33k commentedComment #4
aren33k commentedNeeds more testing
Comment #5
svendecabooterThere is no way to make this work for Symfony Mailer 2.x, while keeping compatibility with 1.x, I assume?
Comment #6
aren33k commented@svendecabooter no I don't think so. I suggest that we make a 2.x version release for this as well.
Comment #8
svendecabooterI'm working on a solution that would provide support for both 1.x and 2.x simultaneously.
Comment #10
svendecabooterNew branch has been added to support both symfony_mailer 1.x and 2.x.
This still needs real-life testing with both versions of the module.
Comment #11
aren33k commentedComment #12
svendecabooterLocal tests with both versions are working as expected.
If someone can test this on their Mailer Plus 2.x project to check if it works there as well, then this can be committed.
Comment #13
svendecabooterComment #14
aren33k commented@svendecabooter Just tested this on a fresh local D11 installation + advancedqueue + Mailer Plus 2.0.1 + advancedqueue_mail. Works as expected.
Comment #16
svendecabooter