commit
520d915860
|
@ -69,9 +69,15 @@ class RootPackageLoader extends ArrayLoader
|
||||||
$references = array();
|
$references = array();
|
||||||
foreach (array('require', 'require-dev') as $linkType) {
|
foreach (array('require', 'require-dev') as $linkType) {
|
||||||
if (isset($config[$linkType])) {
|
if (isset($config[$linkType])) {
|
||||||
$aliases = $this->extractAliases($config[$linkType], $aliases);
|
$linkInfo = BasePackage::$supportedLinkTypes[$linkType];
|
||||||
$stabilityFlags = $this->extractStabilityFlags($config[$linkType], $stabilityFlags);
|
$method = 'get'.ucfirst($linkInfo['method']);
|
||||||
$references = $this->extractReferences($config[$linkType], $references);
|
$links = array();
|
||||||
|
foreach ($package->$method() as $link) {
|
||||||
|
$links[$link->getTarget()] = $link->getConstraint()->getPrettyString();
|
||||||
|
}
|
||||||
|
$aliases = $this->extractAliases($links, $aliases);
|
||||||
|
$stabilityFlags = $this->extractStabilityFlags($links, $stabilityFlags);
|
||||||
|
$references = $this->extractReferences($links, $references);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue