You are here

public function HttpKernel::__construct in Zircon Profile 8.0

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

Constructor.

Parameters

EventDispatcherInterface $dispatcher An EventDispatcherInterface instance:

ControllerResolverInterface $resolver A ControllerResolverInterface instance:

RequestStack $requestStack A stack for master/sub requests:

4 calls to HttpKernel::__construct()
ContainerAwareHttpKernel::__construct in vendor/symfony/http-kernel/DependencyInjection/ContainerAwareHttpKernel.php
Constructor.
TestHttpKernel::__construct in vendor/symfony/http-kernel/Tests/TestHttpKernel.php
Constructor.
TestHttpKernel::__construct in vendor/symfony/http-kernel/Tests/HttpCache/TestHttpKernel.php
Constructor.
TestMultipleHttpKernel::__construct in vendor/symfony/http-kernel/Tests/HttpCache/TestMultipleHttpKernel.php
Constructor.
4 methods override HttpKernel::__construct()
ContainerAwareHttpKernel::__construct in vendor/symfony/http-kernel/DependencyInjection/ContainerAwareHttpKernel.php
Constructor.
TestHttpKernel::__construct in vendor/symfony/http-kernel/Tests/TestHttpKernel.php
Constructor.
TestHttpKernel::__construct in vendor/symfony/http-kernel/Tests/HttpCache/TestHttpKernel.php
Constructor.
TestMultipleHttpKernel::__construct in vendor/symfony/http-kernel/Tests/HttpCache/TestMultipleHttpKernel.php
Constructor.

File

vendor/symfony/http-kernel/HttpKernel.php, line 47

Class

HttpKernel
HttpKernel notifies events to convert a Request object to a Response one.

Namespace

Symfony\Component\HttpKernel

Code

public function __construct(EventDispatcherInterface $dispatcher, ControllerResolverInterface $resolver, RequestStack $requestStack = null) {
  $this->dispatcher = $dispatcher;
  $this->resolver = $resolver;
  $this->requestStack = $requestStack ?: new RequestStack();
}