mirror of
https://github.com/saccas/mjml-typo3.git
synced 2024-12-04 09:56:10 +01:00
[BUGFIX] Deprecation #82254
This commit is contained in:
parent
2f01700413
commit
98341eec3e
2 changed files with 4 additions and 2 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)
|
||||
{
|
||||
$conf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['mjml']);
|
||||
$conf = GeneralUtility::makeInstance(ExtensionConfiguration::class)->get('mjml');
|
||||
|
||||
$temporaryMjmlFileWithPath = GeneralUtility::tempnam('mjml_', '.mjml');
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@ namespace Saccas\Mjml\Tests\Functional\Domain\Renderer;
|
|||
|
||||
use Saccas\Mjml\Domain\Renderer\Command;
|
||||
use Saccas\Mjml\Tests\Unit\AbstractUnitTestCase;
|
||||
use TYPO3\CMS\Core\Configuration\ExtensionConfiguration;
|
||||
use TYPO3\CMS\Core\Package\Package;
|
||||
use TYPO3\CMS\Core\Package\PackageManager;
|
||||
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
|
||||
|
@ -45,7 +46,7 @@ class CommandTest extends AbstractUnitTestCase
|
|||
->willReturn($packageMock);
|
||||
ExtensionManagementUtility::setPackageManager($packageManagerMock);
|
||||
|
||||
$GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['mjml'] = serialize([
|
||||
GeneralUtility::makeInstance(ExtensionConfiguration::class)->set('mjml', '', [
|
||||
'nodeBinaryPath' => 'node',
|
||||
'mjmlBinaryPath' => 'node_modules/mjml/bin/',
|
||||
'mjmlBinary' => 'mjml',
|
||||
|
|
Loading…
Reference in a new issue