Constructor
@api
EventDispatcherInterface $dispatcher An EventDispatcherInterface instance:
ControllerResolverInterface $resolver A ControllerResolverInterface instance:
Overrides HttpKernel::__construct
public function __construct($responses) {
$this->bodies = array();
$this->statuses = array();
$this->headers = array();
$this->call = false;
foreach ($responses as $response) {
$this->bodies[] = $response['body'];
$this->statuses[] = $response['status'];
$this->headers[] = $response['headers'];
}
parent::__construct(new EventDispatcher(), $this);
}