From e63b46ff797aba92eb3514754888a39eb478ece4 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Wed, 11 Oct 2017 16:33:42 +0200 Subject: [PATCH] Document the new RequestExceptionInterface --- components/http_kernel.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/components/http_kernel.rst b/components/http_kernel.rst index 3d06372282e..945364107d6 100644 --- a/components/http_kernel.rst +++ b/components/http_kernel.rst @@ -595,7 +595,12 @@ below for more details). use the ``setHeaders()`` method on exceptions derived from the :class:`Symfony\\Component\\HttpKernel\\Exception\\HttpException` class. - 3) A controller is executed and passed the flattened exception. The exact + 3) If the original exception implements + :class:`Symfony\\Component\\HttpKernel\\Exception\\RequestExceptionInterface`, + then the status code of the ``FlattenException`` object is populated with + ``400`` and no other headers are modified. + + 4) A controller is executed and passed the flattened exception. The exact controller to render is passed as a constructor argument to this listener. This controller will return the final ``Response`` for this error page.