protected function runCommand(Command $command, array $argv, ConsoleIo $io)
    {
        try {
            return $command->run($argv, $io);
        } catch (StopException $e) {
            return $e->getCode();
        }
    }
protected function runCommand(Command $command, array $argv, ConsoleIo $io)
    {
        try {
            return $command->run($argv, $io);
        } catch (StopException $e) {
            return $e->getCode();
        }
    }
protected function runCommand ( Command $ command , array $ argv , ConsoleIo $ io ) { try { return $ command -> run ( $ argv , $ io ) ; } catch ( StopException $ e ) { return $ e -> getCode ( ) ; } }
Execute a Command class.

@param \Cake\Console\Command $command The command to run.
@param array $argv The CLI arguments to invoke.
@param \Cake\Console\ConsoleIo $io The console io
@return int Exit code
Execute a Command class .