Skip to content

Commit

Permalink
TASK: Make MailerIntercace public
Browse files Browse the repository at this point in the history
  • Loading branch information
sabbelasichon committed Jan 16, 2024
1 parent 5638e2c commit 431725b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Classes/Transport/DoctrineTransportFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ private function getConnectionByName(string $connectionName): \Doctrine\DBAL\Con
}

$connectionParams = $GLOBALS['TYPO3_CONF_VARS']['DB']['Connections'][$connectionName] ?? [];
if ($connectionParams === null || $connectionParams === []) {
if (!is_array($connectionParams) || $connectionParams === []) {
throw new TransportException(
'The requested database connection named "' . $connectionName . '" has not been configured.',
);
Expand Down
2 changes: 1 addition & 1 deletion Configuration/Services.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ class_alias(
->public();

$services->alias(SymfonyMailerInterface::class, MessengerMailer::class);
$services->alias(\TYPO3\CMS\Core\Mail\MailerInterface::class, MessengerMailer::class);
$services->alias(\TYPO3\CMS\Core\Mail\MailerInterface::class, MessengerMailer::class)->public();
$services->set('mailer.logger_message_listener', MessageLoggerListener::class)
->tag('event.listener', [
'method' => 'onMessage',
Expand Down
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
'uploadfolder' => '0',
'createDirs' => '',
'clearCacheOnLoad' => 0,
'version' => '2.0.0',
'version' => '2.0.1',
'constraints' => [
'depends' => [
'typo3' => '10.4.0-12.9.99',
Expand Down

0 comments on commit 431725b

Please sign in to comment.