1
0
Fork 0

added support for file:// url to repository

file:// is valid url even if it does not define a host.

allows to define a repo like this (local directory generated with
composer/satis):

```json
{
	"repositories": [ { "type": "composer", "url": "file:///home/cebe/dev/jescali/xeno-core/core/repo" } ],
	"require": {
        ...
	}
}
```
pull/2386/head
Carsten Brandt 2013-10-30 17:46:35 +01:00
parent c849f7d05d
commit f538acc4b0
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ class ComposerRepository extends ArrayRepository implements StreamableRepository
}
$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']);
}