$versionParser
$versionParser :
ArrayLoader built for the sole purpose of loading the root package
Sets additional defaults and loads repositories
$manager : \Composer\Repository\RepositoryManager
$config : \Composer\Config
$versionGuesser : \Composer\Package\Version\VersionGuesser
__construct(\Composer\Repository\RepositoryManager $manager, \Composer\Config $config, \Composer\Package\Version\VersionParser $parser = null, \Composer\Package\Version\VersionGuesser $versionGuesser = null)
\Composer\Repository\RepositoryManager | $manager | |
\Composer\Config | $config | |
\Composer\Package\Version\VersionParser | $parser | |
\Composer\Package\Version\VersionGuesser | $versionGuesser |
load(array $config, string $class = 'Composer\Package\RootPackage', string $cwd = null) : \Composer\Package\RootPackageInterface
Converts a package from an array to a real instance
array | $config | package data |
string | $class | FQCN to be instantiated |
string | $cwd | cwd of the root package to be used to guess the version if it is not provided |
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 |