You are here

public function TestMultipleHttpKernel::__construct in Zircon Profile 8

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

Constructor.

Parameters

EventDispatcherInterface $dispatcher An EventDispatcherInterface instance:

ControllerResolverInterface $resolver A ControllerResolverInterface instance:

RequestStack $requestStack A stack for master/sub requests:

Overrides HttpKernel::__construct

File

vendor/symfony/http-kernel/Tests/HttpCache/TestMultipleHttpKernel.php, line 29

Class

TestMultipleHttpKernel

Namespace

Symfony\Component\HttpKernel\Tests\HttpCache

Code

public function __construct($responses) {
  foreach ($responses as $response) {
    $this->bodies[] = $response['body'];
    $this->statuses[] = $response['status'];
    $this->headers[] = $response['headers'];
  }
  parent::__construct(new EventDispatcher(), $this);
}