コード例 #1
0
ファイル: NodeCounter.php プロジェクト: fluidtypo3/builder
 /**
  * @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');
 }
コード例 #2
0
 /**
  * @test
  */
 public function testGetRenderingContextGetsRenderingContext()
 {
     $context = new RenderingContextFixture();
     $instance = new TemplateCompiler();
     $instance->setRenderingContext($context);
     $this->assertSame($context, $instance->getRenderingContext());
 }
コード例 #3
0
ファイル: RenderingContext.php プロジェクト: typo3/fluid
 /**
  * @param TemplateCompiler $templateCompiler
  * @return void
  */
 public function setTemplateCompiler(TemplateCompiler $templateCompiler)
 {
     $this->templateCompiler = $templateCompiler;
     $this->templateCompiler->setRenderingContext($this);
 }