public function onRequestException(ResponseExceptionEvent $event) { $event->stopPropagation(); $event->setResponse(new Response($event->getException()->getMessage())); $event->getKernel()->shutdown(); $this->responseEvent = $event; }
public function exception(ResponseExceptionEvent $event) { $event->stopPropagation(); $event->getKernel()->shutdown(); $this->writeException($event->getException(), new Output()); exit(1); }
/** * Handle exception. * * @param ResponseExceptionEvent $event */ public final function handle(ResponseExceptionEvent $event) { $event->stopPropagation(); $this->report($event->getException()); $event->setResponse($this->render($event->getException())); }