/** * @param Config $config */ public function __construct(Config $config, GitWrapper $gitWrapper, GitLoggerListener $gitLoggerListener) { $this->config = $config; $this->wrapper = $gitWrapper; $this->wrapper->setTimeout(self::TIMEOUT); $this->wrapper->streamOutput(0); $this->wrapper->addLoggerListener($gitLoggerListener); $this->git = $this->wrapper->workingCopy($this->config->getBasePath()); }