set fosrestexceptioncontroller as twig exception_controller