Expand description
Package model of the resolver: port of Composer\Package\{BasePackage, Package, CompletePackage, AliasPackage, Link} reduced to what the pool
and the solver read, plus the raw JSON of the version (to write the lock
identically). Packages live in an arena (Vec<Package>) and refer to
each other by index, as Composer does by object identity.
Structs§
- Link
Composer\Package\Link, plus its key in the PHP array holding it: the target in general, the bare name for the platform’slib-*(PlatformRepository::addLibrary), none (numeric key) for theself.versionlinks added byAliasPackage.Pool::matchlooks up by key.- Links
- PHP array of links: insertion order, one entry per key (the last write
wins, at the position of the first); keyless links are the numeric-key
entries of
array_merge. - Package
- Source
Ref