[BUGFIX] RenderingContext should be instanciated by interface to allow own implementation
authorTImo Schmidt <timo@timo-UL30A.(none)>
Thu, 16 Feb 2012 22:34:21 +0000 (23:34 +0100)
committerTymoteusz Motylewski <t.motylewski@gmail.com>
Fri, 27 Jul 2012 16:14:20 +0000 (18:14 +0200)
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
typo3/sysext/fluid/Classes/View/TemplateView.php

index cc3a85a..4846611 100644 (file)
@@ -87,7 +87,7 @@ class Tx_Fluid_View_TemplateView extends Tx_Fluid_View_AbstractTemplateView {
        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() {