🐛 fix(ErrorListener): Commente le code de gestion des exceptions en prod.

This commit is contained in:
Serreau Jovann
2025-11-22 22:00:39 +01:00
parent 68583dd662
commit 66b8bbedb4

View File

@@ -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();
}
}
}*/
}
}