Skip to content

Commit

Permalink
XClass the Mailer as alias seems not to work as expected
Browse files Browse the repository at this point in the history
  • Loading branch information
weakbit committed Nov 21, 2024
1 parent 49c18cb commit dfabe70
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ext_localconf.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

use Pluswerk\MailLogger\Logging\MailerExtender;
use TYPO3\CMS\Core\Mail\Mailer;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;

defined('TYPO3') || die();
Expand All @@ -11,3 +13,7 @@
ExtensionManagementUtility::addTypoScriptSetup(
"@import 'EXT:mail_logger/Configuration/TypoScript/setup.typoscript'"
);

$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][Mailer::class] = [
'className' => MailerExtender::class,
];

0 comments on commit dfabe70

Please sign in to comment.