private bool
$initialized = false;
private ?SignalRegistry
$signalRegistry = null;
private array
$signalsToDispatchEvent =
[];
public function __construct(string
$name = 'UNKNOWN', string
$version = 'UNKNOWN'
) { $this->name =
$name;
$this->version =
$version;
$this->terminal =
new Terminal();
$this->defaultCommand = 'list';
if (\
defined('SIGINT'
) && SignalRegistry::
isSupported()) { $this->signalRegistry =
new SignalRegistry();
$this->signalsToDispatchEvent =
[\SIGINT, \SIGTERM, \SIGUSR1, \SIGUSR2
];
} } /**
* @final
*/
public function setDispatcher(EventDispatcherInterface
$dispatcher): void
{ $this->dispatcher =
$dispatcher;
}