public static function loadLockPackage(ArrayLoader $loader, array $lockData, $dev = false)
    {
        $key = $dev ? 'packages-dev' : 'packages';

        if (isset($lockData[$key])) {
            foreach ($lockData[$key] as $i => $package) {
                $package = $loader->load($package);
                $lockData[$key][$i] = $package instanceof AliasPackage ? $package->getAliasOf() : $package;
            }
        }

        return $lockData;
    }
public static function loadLockPackage(ArrayLoader $loader, array $lockData, $dev = false)
    {
        $key = $dev ? 'packages-dev' : 'packages';

        if (isset($lockData[$key])) {
            foreach ($lockData[$key] as $i => $package) {
                $package = $loader->load($package);
                $lockData[$key][$i] = $package instanceof AliasPackage ? $package->getAliasOf() : $package;
            }
        }

        return $lockData;
    }
public static function loadLockPackage ( ArrayLoader $ loader , array $ lockData , $ dev = false ) { $ key = $ dev ? 'packages-dev' : 'packages' ; if ( isset ( $ lockData [ $ key ] ) ) { foreach ( $ lockData [ $ key ] as $ i => $ package ) { $ package = $ loader -> load ( $ package ) ; $ lockData [ $ key ] [ $ i ] = $ package instanceof AliasPackage ? $ package -> getAliasOf ( ) : $ package ; } } return $ lockData ; }
Load the packages in the packages section of the locker load data.

@param ArrayLoader $loader   The package loader
@param array       $lockData The lock data of locker
@param bool        $dev      Check if the dev packages must be loaded

@return array The lock data
Load the packages in the packages section of the locker load data .