You are here

public function AbstractSurrogateFragmentRenderer::__construct in Zircon Profile 8.0

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

Constructor.

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

Parameters

SurrogateInterface $surrogate An Surrogate instance:

FragmentRendererInterface $inlineStrategy The inline strategy to use when the surrogate is not supported:

UriSigner $signer:

File

vendor/symfony/http-kernel/Fragment/AbstractSurrogateFragmentRenderer.php, line 41

Class

AbstractSurrogateFragmentRenderer
Implements Surrogate rendering strategy.

Namespace

Symfony\Component\HttpKernel\Fragment

Code

public function __construct(SurrogateInterface $surrogate = null, FragmentRendererInterface $inlineStrategy, UriSigner $signer = null) {
  $this->surrogate = $surrogate;
  $this->inlineStrategy = $inlineStrategy;
  $this->signer = $signer;
}