Include dev packages in locked package listings for show command
parent
70f211923b
commit
ee4afa29e7
|
@ -175,7 +175,7 @@ EOT
|
||||||
$localRepo = $composer->getRepositoryManager()->getLocalRepository();
|
$localRepo = $composer->getRepositoryManager()->getLocalRepository();
|
||||||
$locker = $composer->getLocker();
|
$locker = $composer->getLocker();
|
||||||
if ($locker->isLocked()) {
|
if ($locker->isLocked()) {
|
||||||
$lockedRepo = $locker->getLockedRepository();
|
$lockedRepo = $locker->getLockedRepository(true);
|
||||||
$installedRepo = new InstalledRepository(array($lockedRepo, $localRepo, $platformRepo));
|
$installedRepo = new InstalledRepository(array($lockedRepo, $localRepo, $platformRepo));
|
||||||
} else {
|
} else {
|
||||||
$installedRepo = new InstalledRepository(array($localRepo, $platformRepo));
|
$installedRepo = new InstalledRepository(array($localRepo, $platformRepo));
|
||||||
|
@ -191,7 +191,7 @@ EOT
|
||||||
throw new \UnexpectedValueException('A valid composer.json and composer.lock files is required to run this command with --locked');
|
throw new \UnexpectedValueException('A valid composer.json and composer.lock files is required to run this command with --locked');
|
||||||
}
|
}
|
||||||
$locker = $composer->getLocker();
|
$locker = $composer->getLocker();
|
||||||
$lockedRepo = $locker->getLockedRepository();
|
$lockedRepo = $locker->getLockedRepository(true);
|
||||||
$installedRepo = new InstalledRepository(array($lockedRepo));
|
$installedRepo = new InstalledRepository(array($lockedRepo));
|
||||||
$repos = new CompositeRepository(array_merge(array($installedRepo), $composer->getRepositoryManager()->getRepositories()));
|
$repos = new CompositeRepository(array_merge(array($installedRepo), $composer->getRepositoryManager()->getRepositories()));
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue