public function runCommand(Command $command, array $parameters = [], OutputInterface $output = null)
    {
        $parameters['command'] = $command->getName();
        $input = new ArrayInput($parameters);

        if ($output === null) {
            $output = new NullOutput();
        }

        $command->setApplication(new SymfonyConsoleApplication());

        return $command->run($input, $output);
    }
public function runCommand(Command $command, array $parameters = [], OutputInterface $output = null)
    {
        $parameters['command'] = $command->getName();
        $input = new ArrayInput($parameters);

        if ($output === null) {
            $output = new NullOutput();
        }

        $command->setApplication(new SymfonyConsoleApplication());

        return $command->run($input, $output);
    }
public function runCommand ( Command $ command , array $ parameters = [ ] , OutputInterface $ output = null ) { $ parameters [ 'command' ] = $ command -> getName ( ) ; $ input = new ArrayInput ( $ parameters ) ; if ( $ output === null ) { $ output = new NullOutput ( ) ; } $ command -> setApplication ( new SymfonyConsoleApplication ( ) ) ; return $ command -> run ( $ input , $ output ) ; }
Run a Propel command.
@param Command $command Command to run.
@param array $parameters Command parameters.
@param OutputInterface|null $output Command output.
@return int Command exit code.
@throws \Exception
Run a Propel command .