public function AbstractSurrogateFragmentRenderer::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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\FragmentCode
public function __construct(SurrogateInterface $surrogate = null, FragmentRendererInterface $inlineStrategy, UriSigner $signer = null) {
$this->surrogate = $surrogate;
$this->inlineStrategy = $inlineStrategy;
$this->signer = $signer;
}