In der Datei AdditionalConfiguration.php
Vorherab TYPO3 9.5
$currentApplicationContext = \TYPO3\CMS\Core\Utility\GeneralUtility::getApplicationContext();$currentApplicationContext = \TYPO3\CMS\Core\Core\Environment::getContext();
dirname(PATH_site)dirname(\TYPO3\CMS\Core\Core\Environment::getPublicPath())

 

TypoScript

Siehe dazu auch: https://docs.typo3.org/c/typo3/cms-core/10.4/en-us/Changelog/9.4/Feature-85829-ImplementSymfonyExpressionLanguageForTypoScriptConditions.html

Vorherab TYPO3 9.5
[globalVar = TSFE:page|backend_layout = 2][page["backend_layout"] == '2']
[treeLevel = 1][tree.level == '1']
[globalVar = GP:L=1][siteLanguage("languageId") == "1"]
[PIDinRootline = 10,20][10 in tree.rootLineIds || 20 in tree.rootLineIds]
@import 'EXT:template/Configuration/TypoScript/Lib/*.typoscript'@import 'EXT:template/Configuration/TypoScript/Lib'

 

Model erweitern

Siehe dazu: https://docs.typo3.org/m/typo3/book-extbasefluid/10.4/en-us/6-Persistence/4-use-foreign-data-sources.html

EXT:extension/Configuration/Extbase/Persistence/Classes.php statt config.tx_extbase.persistence.classes.[...].mapping in TyposScript

MailMessage

In MailMessage

 

$message->setBody($html, 'text/html', 'utf-8')

 

zu

 

$message->setBody()->html($html)

 

anpassen. Beispiel:

 

protected function sendMail($from, $to, $subject, $html)
{
        /** @var MailMessage $message */
        $message = GeneralUtility::makeInstance(MailMessage::class);
        if (GeneralUtility::validEmail($to)) {
            $message->setFrom($from);
            $message->setReplyTo($from);
            $message->setTo($to);
            $message->setSubject($subject);
            $message->setBody()->html($html);
            $message->send();
            unset($message);
        }
    }