Commit 6f84ff52 authored by Oliver Bartsch's avatar Oliver Bartsch Committed by Georg Ringer
Browse files

[!!!][TASK] Remove unused MailerAdapterInterface

The MailerAdapterInterface, related to SwiftMailer
is removed, since it is unused in core since v7.

Resolves: #97752
Releases: main
Change-Id: Ibb0a97dd17a06cb7b4d43d8d9aa4326194f550f5
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/74860


Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Tested-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Reviewed-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
parent 94dd6f06
<?php
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
namespace TYPO3\CMS\Core\Mail;
/**
* Mailer Adapter interface
*/
interface MailerAdapterInterface
{
/**
* Mail sending function
*
* @param string $to Mail recipient.
* @param string $subject Mail subject.
* @param string $messageBody Mail body.
* @param array $additionalHeaders Additional mail headers.
* @param array $additionalParameters Additional mailer parameters.
* @param bool $fakeSending Whether to fake sending or not, used in Unit Tests.
* @return bool TRUE if the mail was successfully sent, FALSE otherwise.
*/
public function mail($to, $subject, $messageBody, $additionalHeaders = null, $additionalParameters = null, $fakeSending = false);
}
.. include:: /Includes.rst.txt
.. _breaking-97752-1654761506
=================================================
Breaking: #97752 - MailerAdapterInterface removed
=================================================
See :issue:`97752`
Description
===========
The :php:`\TYPO3\CMS\Core\Mail\MailerAdapterInterface` has been removed,
since the interface became unused in v7 due to removal of core's
:php:`SwiftMailerAdapter` implementation, which had been used as hook
subscriber in the also removed :php:`MailUtility::mail()` method.
Impact
======
Implementing the interface in custom extension code will trigger
a PHP Error.
Affected installations
======================
All installations implementing the interface in custom extension code,
which is very unlikely. The extenion scanner will report any usage as
strong match.
Migration
=========
Remove any usage of the interface in extension code.
.. index:: PHP-API, FullyScanned, ext:core
......@@ -1979,4 +1979,9 @@ return [
'Deprecation-97576-TYPO3CMSCoreUtilityResourceUtility.rst',
],
],
'TYPO3\CMS\Core\Mail\MailerAdapterInterface' => [
'restFiles' => [
'Breaking-97752-MailerAdapterInterfaceRemoved.rst',
],
],
];
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment