/** * Instanciate a new Git repository wrapper * * @param string $dir real filesystem path of the repository * @param boolean $debug * @param array $options */ public function __construct($dir, $debug = false, array $options = array()) { $this->dir = $dir; $this->debug = $debug; $this->options = array_merge(self::$defaultOptions, $options); $this->checkIsValidRepo(); $config = new Configuration($this); $config->setOriginUrl($options['login'], $options['password'], $options['repository']); }