Constructor
public __construct ( |
||
$dispatcher | An event dispatcher instance | |
$resolver | Symfony\Component\HttpKernel\Controller\ControllerResolverInterface | A ControllerResolverInterface instance |
public function __construct($body, $status, $headers, \Closure $customizer = null) { $this->body = $body; $this->status = $status; $this->headers = $headers; $this->customizer = $customizer; $this->called = false; parent::__construct(new EventDispatcher(), $this); }
public function __construct() { parent::__construct(new EventDispatcher(), $this); }
/** * Constructor * * @param ContainerInterface $container An ContainerInterface instance * @param EventDispatcher $dispatcher An event dispatcher instance * @param ControllerResolverInterface $resolver A ControllerResolverInterface instance */ public function __construct(ContainerInterface $container, EventDispatcher $dispatcher, ControllerResolverInterface $resolver) { $this->container = $container; parent::__construct($dispatcher, $resolver); }