/** * @param \Symfony\Component\Console\Input\InputInterface $input * @param \Symfony\Component\Console\Output\OutputInterface $output * * @throws \Exception * @return mixed */ protected function execute(InputInterface $input, OutputInterface $output) { $this->input = $input; $this->output = $output; if (!method_exists($this, 'fire')) { throw new Exception('Method fire do not exits!', 404); } return $this->container->call([$this, 'fire']); }