Skip to content

Commit a6cabb2

Browse files
committed
feature #19017 [Console] Dispatch ConsoleTerminateEvent when exiting on signal (alexandre-daubois, OskarStark)
This PR was merged into the 6.4 branch. Discussion ---------- [Console] Dispatch `ConsoleTerminateEvent` when exiting on signal Fix #19016 Commits ------- 8171b8b Update components/console/events.rst 7ba8806 [Console] Dispatch `ConsoleTerminateEvent` when exiting on signal
2 parents 53959da + 8171b8b commit a6cabb2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

components/console/events.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,17 @@ Listeners receive a
152152
It is then dispatched just after the ``ConsoleEvents::ERROR`` event.
153153
The exit code received in this case is the exception code.
154154

155+
Additionally, the event is dispatched when the command is being exited on
156+
a signal. You can learn more about signals in the
157+
:ref:`the dedicated section <console-events_signal>`.
158+
159+
.. versionadded:: 6.4
160+
161+
Dispatching the ``ConsoleEvents::TERMINATE`` event on exit
162+
signal was introduced in Symfony 6.4.
163+
164+
.. _console-events_signal:
165+
155166
The ``ConsoleEvents::SIGNAL`` Event
156167
-----------------------------------
157168

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