Skip to content

Commit ee857ff

Browse files
javiereguiluzweaverryan
authored andcommitted
Document the new RequestExceptionInterface
1 parent f684b59 commit ee857ff

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

components/http_kernel.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,12 @@ below for more details).
595595
use the ``setHeaders()`` method on exceptions derived from the
596596
:class:`Symfony\\Component\\HttpKernel\\Exception\\HttpException` class.
597597

598-
3) A controller is executed and passed the flattened exception. The exact
598+
3) If the original exception implements
599+
:class:`Symfony\\Component\\HttpKernel\\Exception\\RequestExceptionInterface`,
600+
then the status code of the ``FlattenException`` object is populated with
601+
``400`` and no other headers are modified.
602+
603+
4) A controller is executed and passed the flattened exception. The exact
599604
controller to render is passed as a constructor argument to this listener.
600605
This controller will return the final ``Response`` for this error page.
601606

0 commit comments

Comments
 (0)