M
M
magary42016-12-22 12:04:42
symfony
magary4, 2016-12-22 12:04:42

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

3 answer(s)
O
OnYourLips, 2016-12-24
@OnYourLips

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.

L
LittleFatNinja, 2016-12-22
@LittleFatNinja

see how it is implemented in yii2, for example

A
Alexander Evgenievich, 2016-12-22
@banderos120

https://symfony.com/doc/current/controller/error_p...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question