The common task in web development is handling and monitoring exception with various tools. In this article I can show how to handle and log errors in Symfony2. For this task we will use our custom exception listener.
All we know that fat controllers is evil in MVC but where we can place additional logic ? One of the solutions in Symfony2 – events and event listeners provided by EventDispatcher Component.