From 7ba88062ac76e976ac7a5053db8c7e402c64a3fe Mon Sep 17 00:00:00 2001 From: Alexandre Daubois Date: Fri, 13 Oct 2023 11:59:59 +0200 Subject: [PATCH 1/2] [Console] Dispatch `ConsoleTerminateEvent` when exiting on signal --- components/console/events.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/components/console/events.rst b/components/console/events.rst index 598763bcb01..3897e69ad1a 100644 --- a/components/console/events.rst +++ b/components/console/events.rst @@ -152,6 +152,17 @@ Listeners receive a It is then dispatched just after the ``ConsoleEvents::ERROR`` event. The exit code received in this case is the exception code. + Additionally, the event is dispatched when the command is being exited on + a signal. You can learn more about signals in the + :ref:`the dedicated section `. + + .. versionadded:: 6.4 + + The dispatching of the ``ConsoleEvents::TERMINATE`` event on exit + signal was introduced in Symfony 6.4. + +.. _console-events_signal: + The ``ConsoleEvents::SIGNAL`` Event ----------------------------------- From 8171b8b50e42f9c8a1f5148eff28b23cec0b6de1 Mon Sep 17 00:00:00 2001 From: Oskar Stark Date: Fri, 13 Oct 2023 12:25:29 +0200 Subject: [PATCH 2/2] Update components/console/events.rst --- components/console/events.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/console/events.rst b/components/console/events.rst index 3897e69ad1a..07e892b4f6a 100644 --- a/components/console/events.rst +++ b/components/console/events.rst @@ -158,7 +158,7 @@ Listeners receive a .. versionadded:: 6.4 - The dispatching of the ``ConsoleEvents::TERMINATE`` event on exit + Dispatching the ``ConsoleEvents::TERMINATE`` event on exit signal was introduced in Symfony 6.4. .. _console-events_signal: 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