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

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

eiriksm created an issue. See original summary.

eiriksm’s picture

Issue summary: View changes
Status: Active » Needs review
adamps’s picture

Version: 1.5.0 » 2.x-dev
Status: Needs review » Needs work

All fixes in 2.x please - that's why it's the default branch😃

adamps’s picture

Status: Needs work » Closed (outdated)

It's been fixed in 2.x

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.