Skip to content

Commit 7cc8290

Browse files
[HttpKernel] Introduce ExceptionEvent::isKernelTerminating()
1 parent a4035a8 commit 7cc8290

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

components/http_kernel.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,17 @@ comes with an :class:`Symfony\\Component\\HttpKernel\\EventListener\\ErrorListen
519519
which if you choose to use, will do this and more by default (see the sidebar
520520
below for more details).
521521

522+
The :class:`Symfony\\Component\\HttpKernel\\Event\\ExceptionEvent` exposes the
523+
:method:`Symfony\\Component\\HttpKernel\\Event\\ExceptionEvent::isKernelTerminating`
524+
method, which you can use to determine if the kernel is currently terminating
525+
at the moment the exception was thrown.
526+
527+
.. versionadded:: 7.1
528+
529+
The
530+
:method:`Symfony\\Component\\HttpKernel\\Event\\ExceptionEvent::isKernelTerminating`
531+
method was introduced in Symfony 7.1.
532+
522533
.. note::
523534

524535
When setting a response for the ``kernel.exception`` event, the propagation

0 commit comments

Comments
 (0)