Commit 37bdf76 1 parent cf2fb97 commit 37bdf76 Copy full SHA for 37bdf76
File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -560,7 +560,9 @@ below for more details).
560
560
then ``getStatusCode `` and ``getHeaders `` are called on the exception
561
561
and used to populate the headers and status code of the ``FlattenException ``
562
562
object. The idea is that these are used in the next step when creating
563
- the final response.
563
+ the final response. If you want to set custom HTTP headers, you can always
564
+ use the ``setHeaders `` method on exceptions derived from the
565
+ :class: `Symfony\\ Component\\ HttpKernel\\ Exception\\ HttpException ` class.
564
566
565
567
3) A controller is executed and passed the flattened exception. The exact
566
568
controller to render is passed as a constructor argument to this listener.
@@ -595,7 +597,7 @@ each event has their own event object:
595
597
===================== ================================ ===================================================================================
596
598
Name ``KernelEvents `` Constant Argument passed to the listener
597
599
===================== ================================ ===================================================================================
598
- kernel.request ``KernelEvents::REQUEST `` :class: `Symfony\\ Component\\ HttpKernel\\ Event\\ GetResponseEvent `
600
+ kernel.request ``KernelEvents::REQUEST `` :class: `Symfony\\ Component\\ HttpKernel\\ Event\\ GetResponseEvent `
599
601
kernel.controller ``KernelEvents::CONTROLLER `` :class: `Symfony\\ Component\\ HttpKernel\\ Event\\ FilterControllerEvent `
600
602
kernel.view ``KernelEvents::VIEW `` :class: `Symfony\\ Component\\ HttpKernel\\ Event\\ GetResponseForControllerResultEvent `
601
603
kernel.response ``KernelEvents::RESPONSE `` :class: `Symfony\\ Component\\ HttpKernel\\ Event\\ FilterResponseEvent `
You can’t perform that action at this time.
0 commit comments