Closed
Description
Symfony version(s) affected
since 6.1.4 - 6.1.x-dev - 6.2.x-dev
Description
Using SignalableCommandInterface
to intercept the signal SIGINT
, the process is stopped while it was still running on previous minor versions.
How to reproduce
For Symfony World Online 2022, I created a sample command (code) to play with signals.
https://asciinema.org/a/su5VlgGiuRTBqSD4OXqSNn0XP
The command bin/console app:signal
display a progress bar that change direction when Ctrl+C
is hit.
When symfony/console
is updated to 6.1.4 or newer, Ctrl+C
stops the process.
https://asciinema.org/a/537232
Possible Solution
Related merge requests:
- [Console] Fix ConsoleEvents::SIGNAL subscriber dispatch #45333
- [Console] fix dispatch signal event check for compatibility with the contract interface #47218
Full diff: symfony/console@v6.1.3...v6.1.4
Additional Context
No response