Sets or removes CTRL event handlers, which allows CLI processes to intercept or ignore CTRL+C and CTRL+BREAK events.
Install the package via composer
composer require mageok/cli-signal-handler
use Mageok\CliSignalHandler\CliCtrlScheduler;
CliCtrlScheduler::registerCtrlCEvent($handler1);
CliCtrlScheduler::registerCtrlCEvent($handler2);