[TwigBundle] Deprecating error templates for non-html formats and using ErrorRenderer as fallback #31398
In the previous PR we created a new mechanism to render any PHP error/exception in a formatted string, which if the FB is enabled, would return an HTTP Response according to the preferred Request format (html, json, xml, txt, etc.), but when installing the TwigBundle this rendering mechanism is replaced by the current ExceptionController.
This ExceptionController allows us to render custom error pages based on Twig in many formats, just what is already supported with the new ErrorRenderer component, so let's deprecate this in favor of the native.
I have a problem with the ErrorHandler in functional tests, it does not work because the
Jun 5, 2019
I know, that's too much changes for one PR, and still there are more in the next iteration:
Let me know if a split of this PR is necessary.