Skip to content

Commit 7ba8806

Browse files
[Console] Dispatch ConsoleTerminateEvent when exiting on signal
1 parent 53959da commit 7ba8806

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+
The dispatching of 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)