/** * @return ExposedTemplateCompiler */ protected function getTemplateCompiler() { if ($this->assertCoreVersionAtLeast(8)) { $compiler = new TemplateCompiler(); $compiler->setRenderingContext(new RenderingContext()); return $compiler; } return $this->objectManager->get('FluidTYPO3\\Builder\\Parser\\ExposedTemplateCompiler'); }
/** * @test */ public function testGetRenderingContextGetsRenderingContext() { $context = new RenderingContextFixture(); $instance = new TemplateCompiler(); $instance->setRenderingContext($context); $this->assertSame($context, $instance->getRenderingContext()); }
/** * @param TemplateCompiler $templateCompiler * @return void */ public function setTemplateCompiler(TemplateCompiler $templateCompiler) { $this->templateCompiler = $templateCompiler; $this->templateCompiler->setRenderingContext($this); }