1
0
Fork 0

Check we have a driver before using it

pull/104/merge
Jordi Boggiano 2011-11-15 11:54:26 +01:00
parent 1fd9174c0d
commit 22a93e7273
1 changed files with 4 additions and 0 deletions

View File

@ -43,6 +43,10 @@ class VcsRepository extends ArrayRepository
}
}
if (!$driver) {
throw new \InvalidArgumentException('No driver found to handle VCS repository '.$this->url);
}
$versionParser = new VersionParser;
$loader = new ArrayLoader($this->repositoryManager);
$versions = array();