public function call($command, array $parameters = [])
    {
        array_unshift($parameters, $command);

        $this->lastOutput = new BufferedOutput;

        $this->setCatchExceptions(false);

        $result = $this->run(new ArrayInput($parameters), $this->lastOutput);

        $this->setCatchExceptions(true);

        return $result;
    }
public function call($command, array $parameters = [])
    {
        array_unshift($parameters, $command);

        $this->lastOutput = new BufferedOutput;

        $this->setCatchExceptions(false);

        $result = $this->run(new ArrayInput($parameters), $this->lastOutput);

        $this->setCatchExceptions(true);

        return $result;
    }
public function call ( $ command , array $ parameters = [ ] ) { array_unshift ( $ parameters , $ command ) ; $ this -> lastOutput = new BufferedOutput ; $ this -> setCatchExceptions ( false ) ; $ result = $ this -> run ( new ArrayInput ( $ parameters ) , $ this -> lastOutput ) ; $ this -> setCatchExceptions ( true ) ; return $ result ; }
Run an console command by name.

@param string $command
@param array  $parameters

@return int
Run an console command by name .