mirror of
https://github.com/saccas/mjml-typo3.git
synced 2024-11-15 03:36:11 +01:00
[WIP] v11: fix RendererInterface injection
This commit is contained in:
parent
69d6d05b38
commit
254a970468
1 changed files with 4 additions and 1 deletions
|
@ -2,6 +2,8 @@
|
|||
namespace Saccas\Mjml\View;
|
||||
|
||||
use Saccas\Mjml\Domain\Renderer\RendererInterface;
|
||||
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
||||
use TYPO3\CMS\Extbase\Object\ObjectManager;
|
||||
use TYPO3\CMS\Fluid\View\StandaloneView;
|
||||
use TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer;
|
||||
|
||||
|
@ -15,7 +17,8 @@ class MjmlBasedView extends StandaloneView
|
|||
|
||||
$this->renderer = $renderer;
|
||||
if ($this->renderer === null) {
|
||||
$this->renderer = $this->objectManager->get(RendererInterface::class);
|
||||
$objectManager = GeneralUtility::makeInstance(ObjectManager::class);
|
||||
$this->renderer = $objectManager->get(RendererInterface::class);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue