Skip to content

Commit 9ca8dc1

Browse files
committed
minor #19175 [HttpKernel] Introduce ExceptionEvent::isKernelTerminating() (alexandre-daubois)
This PR was merged into the 7.1 branch. Discussion ---------- [HttpKernel] Introduce `ExceptionEvent::isKernelTerminating()` Fix #19174 Commits ------- 7cc8290 [HttpKernel] Introduce `ExceptionEvent::isKernelTerminating()`
2 parents 171625f + 7cc8290 commit 9ca8dc1

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy