/**
  * @param \TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext
  * @param \TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext $controllerContext
  * @return void
  */
 protected function prepareContextsForUncachedRendering(RenderingContextInterface $renderingContext, ControllerContext $controllerContext)
 {
     $renderingContext->setControllerContext($controllerContext);
     $this->setRenderingContext($renderingContext);
     $this->templateParser = TemplateParserBuilder::build();
     $this->templateCompiler = $this->objectManager->get('TYPO3\\CMS\\Fluid\\Core\\Compiler\\TemplateCompiler');
     $this->templateCompiler->setTemplateCache($GLOBALS['typo3CacheManager']->getCache('fluid_template'));
 }
Exemple #2
0
 public function __construct()
 {
     $this->templateParser = \TYPO3\CMS\Fluid\Compatibility\TemplateParserBuilder::build();
     $this->objectManager = GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager');
     $this->setRenderingContext($this->objectManager->get('TYPO3\\CMS\\Fluid\\Core\\Rendering\\RenderingContextInterface'));
 }
Exemple #3
0
	/**
	 * Constructor
	 */
	public function __construct() {
		$this->templateParser = TemplateParserBuilder::build();
		$this->objectManager = GeneralUtility::makeInstance(ObjectManager::class);
		$this->setRenderingContext($this->objectManager->get(RenderingContextInterface::class));
	}