Project

General

Profile

Actions

Feature #97747

closed

Use MailerInterface instead of Mailer

Added by Jeroen Schutte almost 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Mailer API
Target version:
-
Start date:
2022-06-08
Due date:
% Done:

100%

Estimated time:
PHP Version:
8.1
Tags:
Complexity:
Sprint Focus:

Description

There are several examples where an instance of Mailer is used, where it should be MailerInterface due to low coupling and DI.

GeneralUtility::makeInstance(Mailer)
should be
GeneralUtility::makeInstance(MailerInterface)

We want this because we created our own implementation of MailterInterface and discovered that (for instance) PasswordReset did not use the new implementation.

List of classes where Mailer is uses (probably incomplete):
  • EmailFinisher
  • AuthenticationService
  • EnvironmentController
  • ValidatorTask
  • SystemStatusUpdateTask
  • StateChangeNotification

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #98575: New feature rst should reside in 12.1 folderClosedBenni Mack2022-10-11

Actions
Related to TYPO3 Core - Bug #99990: Exception on logging in the standalone install toolClosedOliver Bartsch2023-02-20

Actions
Actions

Also available in: Atom PDF