Add support for mirror-style placeholders for the dist url, fixes #9661
parent
c8de960018
commit
c257395a6d
|
@ -623,6 +623,11 @@ class Package extends BasePackage
|
|||
if (!$url) {
|
||||
return array();
|
||||
}
|
||||
|
||||
if ($urlType === 'dist' && false !== strpos($url, '%')) {
|
||||
$url = ComposerMirror::processUrl($url, $this->name, $this->version, $ref, $type);
|
||||
}
|
||||
|
||||
$urls = array($url);
|
||||
if ($mirrors) {
|
||||
foreach ($mirrors as $mirror) {
|
||||
|
|
Loading…
Reference in New Issue