Answer the question
In order to leave comments, you need to log in
Catch all exceptions in production?
by default, when an exception occurs, only a white screen appears
; how to make it display a certain page in the layout with a human-readable error message
and invisible text
; " in which the profiling will go but no messages on the screen?
Answer the question
In order to leave comments, you need to log in
You write an Exception Listener, as in the
symfony.com/doc/current/event_dispatcher.html
documentation example.
In it, you handle the error (log, send to the tracker, etc.) and form the desired response.
https://symfony.com/doc/current/controller/error_p...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question