public function EsiFragmentRenderer::__construct

Constructor.

The "fallback" strategy when ESI is not available should always be an instance of InlineFragmentRenderer.

Parameters

Esi $esi An Esi instance:

InlineFragmentRenderer $inlineStrategy The inline strategy to use when ESI is not supported:

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Fragment/EsiFragmentRenderer.php, line 38

Class

EsiFragmentRenderer
Implements the ESI rendering strategy.

Namespace

Symfony\Component\HttpKernel\Fragment

Code

public function __construct(Esi $esi, InlineFragmentRenderer $inlineStrategy) {
  $this->esi = $esi;
  $this->inlineStrategy = $inlineStrategy;
}