public function execute(InputInterface $input, OutputInterface $output)
    {
        $this->output = $output;
        try {
            $this->doExecute($input, $output);
        } catch (\Exception $e) {
            $this->writeException($e);
        }
    }
public function execute(InputInterface $input, OutputInterface $output)
    {
        $this->output = $output;
        try {
            $this->doExecute($input, $output);
        } catch (\Exception $e) {
            $this->writeException($e);
        }
    }
public function execute ( InputInterface $ input , OutputInterface $ output ) { $ this -> output = $ output ; try { $ this -> doExecute ( $ input , $ output ) ; } catch ( \ Exception $ e ) { $ this -> writeException ( $ e ) ; } }
Execute command and type

@param InputInterface $input
@param OutputInterface $output
@throws \RuntimeException
@throws \LogicException
@return void
Execute command and type