mirror of
https://github.com/saccas/mjml-typo3.git
synced 2024-11-15 03:16:09 +01:00
[BUGFIX] Get extension config over API
This commit is contained in:
parent
396535b8ea
commit
df50914377
1 changed files with 2 additions and 1 deletions
|
@ -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');
|
||||
|
||||
|
|
Loading…
Reference in a new issue