public function TestHttpKernel::__construct

Same name in this branch
  1. 8.x drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/TestHttpKernel.php \Symfony\Component\HttpKernel\Tests\TestHttpKernel::__construct()
  2. 8.x drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/HttpCache/TestHttpKernel.php \Symfony\Component\HttpKernel\Tests\HttpCache\TestHttpKernel::__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/TestHttpKernel.php, line 31

Class

TestHttpKernel

Namespace

Symfony\Component\HttpKernel\Tests\HttpCache

Code

public function __construct($body, $status, $headers, \Closure $customizer = null) {
  $this->body = $body;
  $this->status = $status;
  $this->headers = $headers;
  $this->customizer = $customizer;
  $this->called = false;
  $this->catch = false;
  parent::__construct(new EventDispatcher(), $this);
}