You are here

public function TestHttpKernel::__construct in Zircon Profile 8.0

Same name in this branch
  1. 8.0 vendor/symfony/http-kernel/Tests/TestHttpKernel.php \Symfony\Component\HttpKernel\Tests\TestHttpKernel::__construct()
  2. 8.0 vendor/symfony/http-kernel/Tests/HttpCache/TestHttpKernel.php \Symfony\Component\HttpKernel\Tests\HttpCache\TestHttpKernel::__construct()
Same name and namespace in other branches
  1. 8 vendor/symfony/http-kernel/Tests/HttpCache/TestHttpKernel.php \Symfony\Component\HttpKernel\Tests\HttpCache\TestHttpKernel::__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/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;
  parent::__construct(new EventDispatcher(), $this);
}