diff --git a/components/console/events.rst b/components/console/events.rst index 598763bcb01..07e892b4f6a 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 + + Dispatching the ``ConsoleEvents::TERMINATE`` event on exit + signal was introduced in Symfony 6.4. + +.. _console-events_signal: + The ``ConsoleEvents::SIGNAL`` Event -----------------------------------