You are here

public function SurrogateListener::__construct in Zircon Profile 8

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

Constructor.

Parameters

SurrogateInterface $surrogate An SurrogateInterface instance:

File

vendor/symfony/http-kernel/EventListener/SurrogateListener.php, line 33

Class

SurrogateListener
SurrogateListener adds a Surrogate-Control HTTP header when the Response needs to be parsed for Surrogates.

Namespace

Symfony\Component\HttpKernel\EventListener

Code

public function __construct(SurrogateInterface $surrogate = null) {
  $this->surrogate = $surrogate;
}