public function TestMultipleHttpKernel::__construct

Constructor

@api

Parameters

EventDispatcherInterface $dispatcher An EventDispatcherInterface instance:

ControllerResolverInterface $resolver A ControllerResolverInterface instance:

Overrides HttpKernel::__construct

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/HttpCache/TestMultipleHttpKernel.php, line 29

Class

TestMultipleHttpKernel

Namespace

Symfony\Component\HttpKernel\Tests\HttpCache

Code

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