Problem/Motivation
This deprecation started coming up in my tests, and so here is a patch that uses the new recommended service.
The change record mentioned is here: https://www.drupal.org/node/3310017
As all versions of Symfony mailer require at least 10.3, I guess this can be safely committed to all branches, if necessary.
Steps to reproduce
Use symfony mailer where deprecations are allowed to bubble up somehow
Proposed resolution
Use the new recommended service and method.
Remaining tasks
Review
Commit
User interface changes
none
API changes
I guess the service, if extended by custom or contrib code, have changed its API surface. Another approach would be to conditionally set it, but it increases the complexity of course.
Data model changes
none
Issue fork symfony_mailer-3505462
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 #3
eiriksmComment #4
adamps commentedAll fixes in 2.x please - that's why it's the default branch😃
Comment #5
adamps commentedIt's been fixed in 2.x