/** * @param \Symfony\Component\Console\Output\OutputInterface $output * @param array $options */ public function __construct(OutputInterface $output, array $options = []) { parent::__construct($output); $this->options = $options; $this->setListener('*.start', [$this, 'onStart']); $this->setListener('*.finish', [$this, 'onFinish']); }
/** * @param \Symfony\Component\Console\Output\OutputInterface $output * @param array $options */ public function __construct(OutputInterface $output, array $options = []) { parent::__construct($output); $this->options = $options; $this->setListener('*.notice', [$this, 'onNotice']); $this->setListener('*.warning', [$this, 'onWarning']); $this->setListener('*.error', [$this, 'onError']); }