$versionParser
$versionParser :
__construct(\Composer\Semver\VersionParser $parser = null, $loadOptions = false)
\Composer\Semver\VersionParser | $parser | |
$loadOptions |
load(array $config, string $class = 'Composer\Package\CompletePackage') : \Composer\Package\PackageInterface
Converts a package from an array to a real instance
array | $config | |
string | $class | Package class to use |
parseLinks(string $source, string $sourceVersion, string $description, array $links) : array<mixed,\Composer\Package\Link>
string | $source | source package name |
string | $sourceVersion | source package version (pretty version ideally) |
string | $description | link description (e.g. requires, replaces, ..) |
array | $links | array of package name => constraint mappings |