🐛 fix(ErrorListener): Commente le code de gestion des exceptions en prod.
This commit is contained in:
@@ -22,7 +22,7 @@ class ErrorListener
|
||||
|
||||
public function onException(ExceptionEvent $exceptionEvent) {
|
||||
$exception = $exceptionEvent->getThrowable();
|
||||
|
||||
/*
|
||||
if($_ENV['APP_ENV'] == "prod") {
|
||||
if ($exception instanceof NotFoundHttpException) {
|
||||
$response = new Response($this->environment->render('error/404.twig', [
|
||||
@@ -40,6 +40,6 @@ class ErrorListener
|
||||
$exceptionEvent->setResponse($response);
|
||||
$exceptionEvent->stopPropagation();
|
||||
}
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user