getInput(), $this->getOutput()); } if ($helper === 'domain') { return DomainHelper::getInstance($this->getInput(), $this->getOutput()); } if ($helper === 'validator') { return ValidatorHelper::getInstance($this->getInput(), $this->getOutput()); } if ($helper === 'dialog') { return $this->getHelperSet()->get('dialog'); } throw new \InvalidArgumentException(sprintf('Invalid helper "%s"', $helper)); } protected function execute(InputInterface $input, OutputInterface $output) { $this->setInput($input); $this->setOutput($output); } public function setInput(InputInterface $input) { $this->input = $input; return $this; } public function getInput() { return $this->input; } public function setOutput(OutputInterface $output) { $this->output = $output; return $this; } public function getOutput() { return $this->output; } }