You are here

public function HIncludeFragmentRenderer::__construct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-kernel/Fragment/HIncludeFragmentRenderer.php \Symfony\Component\HttpKernel\Fragment\HIncludeFragmentRenderer::__construct()

Constructor.

Parameters

EngineInterface|\Twig_Environment $templating An EngineInterface or a \Twig_Environment instance:

UriSigner $signer A UriSigner instance:

string $globalDefaultTemplate The global default content (it can be a template name or the content):

string $charset:

File

vendor/symfony/http-kernel/Fragment/HIncludeFragmentRenderer.php, line 40

Class

HIncludeFragmentRenderer
Implements the Hinclude rendering strategy.

Namespace

Symfony\Component\HttpKernel\Fragment

Code

public function __construct($templating = null, UriSigner $signer = null, $globalDefaultTemplate = null, $charset = 'utf-8') {
  $this
    ->setTemplating($templating);
  $this->globalDefaultTemplate = $globalDefaultTemplate;
  $this->signer = $signer;
  $this->charset = $charset;
}