Constructor.
EventDispatcherInterface $dispatcher An EventDispatcherInterface instance:
ContainerInterface $container A ContainerInterface instance:
ControllerResolverInterface $controllerResolver A ControllerResolverInterface instance:
Overrides HttpKernel::__construct
public function __construct(EventDispatcherInterface $dispatcher, ContainerInterface $container, ControllerResolverInterface $controllerResolver) {
parent::__construct($dispatcher, $controllerResolver);
$this->container = $container;
// the request scope might have been created before (see FrameworkBundle)
if (!$container
->hasScope('request')) {
$container
->addScope(new Scope('request'));
}
}