kernel = $kernel; } public function handleRequest(RequestInterface $request) { $this->kernel->boot(); $symfonyRequest = $request->getHttpFoundationRequest(); $symfonyResponse = $this->kernel->handle($symfonyRequest); if ($this->kernel instanceof TerminableInterface) { $this->kernel->terminate($symfonyRequest, $symfonyResponse); } return $symfonyResponse; } }