Merge pull request #2386 from cebe/allow-file-url

added support for file:// url to repository
main
Jordi Boggiano 11 years ago
commit af91b19f5e

@ -63,7 +63,7 @@ class ComposerRepository extends ArrayRepository implements StreamableRepository
} }
$urlBits = parse_url($repoConfig['url']); $urlBits = parse_url($repoConfig['url']);
if (empty($urlBits['scheme']) || empty($urlBits['host'])) { if ($urlBits === false || empty($urlBits['scheme'])) {
throw new \UnexpectedValueException('Invalid url given for Composer repository: '.$repoConfig['url']); throw new \UnexpectedValueException('Invalid url given for Composer repository: '.$repoConfig['url']);
} }

Loading…
Cancel
Save