public function run()
    {
        $process = $this->getProcessExecutor();
        $process->setCommandLine($this->getCommand());

        $logger = function ($error, $line) {
            call_user_func_array(array($this, 'logLine'), array($error, $line));
        };

        return $process->run($logger);
    }
public function run()
    {
        $process = $this->getProcessExecutor();
        $process->setCommandLine($this->getCommand());

        $logger = function ($error, $line) {
            call_user_func_array(array($this, 'logLine'), array($error, $line));
        };

        return $process->run($logger);
    }
public function run ( ) { $ process = $ this -> getProcessExecutor ( ) ; $ process -> setCommandLine ( $ this -> getCommand ( ) ) ; $ logger = function ( $ error , $ line ) { call_user_func_array ( array ( $ this , 'logLine' ) , array ( $ error , $ line ) ) ; } ; return $ process -> run ( $ logger ) ; }
executes the command.

@return integer the return code of the executed command
executes the command .