/** * @param array $options */ public function __construct(array $options = null) { parent::__construct($options); // Conditional because of lack of pcntl_signal on windows if (function_exists('pcntl_signal')) { pcntl_signal(SIGTERM, [$this, 'onPCNTLSignal']); pcntl_signal(SIGINT, [$this, 'onPCNTLSignal']); } }
/** * @param AdapterInterface $console * @param array $options */ public function __construct(AdapterInterface $console, array $options = null) { $this->console = $console; parent::__construct($options); }