The RenderingContext should be instanciated by the interface name
instead of the concrete Classname in Classes/View/TemplateView.php
Changing "Tx_Fluid_Core_Rendering_RenderingContext" to
"Tx_Fluid_Core_Rendering_RenderingContextInterface" will allow to register
an own rendering context object.
Fixes: #39156
Releases: 6.0, 4.7, 1.4
Change-Id: I3991a079d2441b35a54b607202caddeeb9e71666
Reviewed-on: http://review.typo3.org/9063
Reviewed-by: Tymoteusz Motylewski
Tested-by: Tymoteusz Motylewski
public function __construct() {
$this->injectTemplateParser(Tx_Fluid_Compatibility_TemplateParserBuilder::build());
$this->injectObjectManager(t3lib_div::makeInstance('Tx_Extbase_Object_ObjectManager'));
- $this->setRenderingContext($this->objectManager->create('Tx_Fluid_Core_Rendering_RenderingContext'));
+ $this->setRenderingContext($this->objectManager->create('Tx_Fluid_Core_Rendering_RenderingContextInterface'));
}
public function initializeView() {