1
0
Fork 0

Rename source_ref to source-ref

pull/329/head
Jordi Boggiano 2012-02-19 15:20:03 +01:00
parent c12dccd3d4
commit 646d01658a
2 changed files with 3 additions and 3 deletions

View File

@ -232,8 +232,8 @@ EOT
}
if ($package && $package->isDev()) {
foreach ($composer->getLocker()->getLockedPackages() as $lockedPackage) {
if (!empty($lockedPackage['source_reference']) && strtolower($lockedPackage['package']) === $package->getName()) {
$package->setSourceReference($lockedPackage['source_reference']);
if (!empty($lockedPackage['source-reference']) && strtolower($lockedPackage['package']) === $package->getName()) {
$package->setSourceReference($lockedPackage['source-reference']);
}
}
}

View File

@ -119,7 +119,7 @@ class Locker
$spec = array('package' => $name, 'version' => $version);
if ($package->isDev()) {
$spec['source_reference'] = $package->getSourceReference();
$spec['source-reference'] = $package->getSourceReference();
}
$lock['packages'][] = $spec;