/**
  * @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']);
     }
 }
示例#2
0
 /**
  * @param AdapterInterface $console
  * @param array            $options
  */
 public function __construct(AdapterInterface $console, array $options = null)
 {
     $this->console = $console;
     parent::__construct($options);
 }