public function runCommand($command, OutputInterface $output = null)
    {
        $input = new StringInput($command);

        $command = $this->find($this->getCommandName($input));

        return $command->run($input, $output ?: new NullOutput());
    }
public function runCommand($command, OutputInterface $output = null)
    {
        $input = new StringInput($command);

        $command = $this->find($this->getCommandName($input));

        return $command->run($input, $output ?: new NullOutput());
    }
public function runCommand ( $ command , OutputInterface $ output = null ) { $ input = new StringInput ( $ command ) ; $ command = $ this -> find ( $ this -> getCommandName ( $ input ) ) ; return $ command -> run ( $ input , $ output ? : new NullOutput ( ) ) ; }
Helper to run a sub-command from a command.

@param string $command Command that should be run.
@param OutputInterface|null $output The output to use. If not provided, the output will be silenced.

@return int 0 if everything went fine, or an error code
Helper to run a sub - command from a command .