Using symfony debug component to handle errors