[BUGFIX] Get extension config over API

This commit is contained in:
Daniel Huf 2021-04-12 17:19:22 +02:00
parent 396535b8ea
commit df50914377

View file

@ -1,6 +1,7 @@
<?php
namespace Saccas\Mjml\Domain\Renderer;
use TYPO3\CMS\Core\Configuration\ExtensionConfiguration;
use TYPO3\CMS\Core\Utility\CommandUtility;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
@ -9,7 +10,7 @@ class Command implements RendererInterface
{
public function getHtmlFromMjml($mjml): string
{
$conf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['mjml']);
$conf = GeneralUtility::makeInstance(ExtensionConfiguration::class)->get('mjml');
$temporaryMjmlFileWithPath = GeneralUtility::tempnam('mjml_', '.mjml');