Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
[Console] Dispatch ConsoleTerminateEvent when exiting on signal
  • Loading branch information
alexandre-daubois committed Oct 13, 2023
commit 7ba88062ac76e976ac7a5053db8c7e402c64a3fe
11 changes: 11 additions & 0 deletions components/console/events.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <console-events_signal>`.

.. 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
-----------------------------------

Expand Down