/** * Set adapter data from config * * @param array|string $vcsType * @throws \PreCommit\Exception */ public function __construct($vcsType) { parent::__construct($vcsType); $this->setCodePath($this->getVcsAdapter()->getCodePath()); $this->setFiles($this->getVcsAdapter()->getAffectedFiles()); $this->helperSet = new HelperSet(); $this->initHelperSet(); }
/** * Set adapter data from config * * @param array|string $vcsType * @throws \PreCommit\Exception */ public function __construct($vcsType) { parent::__construct($vcsType); $this->setCodePath($this->getVcsAdapter()->getCodePath()); }