Skip to content

Commit 3c448e7

Browse files
committed
feature #8506 Document the new RequestExceptionInterface (javiereguiluz)
This PR was submitted for the master branch but it was merged into the 3.3 branch instead (closes #8506). Discussion ---------- Document the new RequestExceptionInterface This fixes #7288. Commits ------- ee857ff Document the new RequestExceptionInterface
2 parents f684b59 + ee857ff commit 3c448e7

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)