|
|
|
@ -69,11 +69,7 @@ class Locker
|
|
|
|
|
*/
|
|
|
|
|
public function getLockedPackages()
|
|
|
|
|
{
|
|
|
|
|
if (!$this->isLocked()) {
|
|
|
|
|
throw new \LogicException('No lockfile found. Unable to read locked packages');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$lockList = $this->lockFile->read();
|
|
|
|
|
$lockList = $this->getLockData();
|
|
|
|
|
$packages = array();
|
|
|
|
|
foreach ($lockList['packages'] as $info) {
|
|
|
|
|
$package = $this->repositoryManager->getLocalRepository()->findPackage($info['package'], $info['version']);
|
|
|
|
@ -95,6 +91,15 @@ class Locker
|
|
|
|
|
return $packages;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getLockData()
|
|
|
|
|
{
|
|
|
|
|
if (!$this->isLocked()) {
|
|
|
|
|
throw new \LogicException('No lockfile found. Unable to read locked packages');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return $this->lockFile->read();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Locks provided packages into lockfile.
|
|
|
|
|
*
|
|
|
|
|