Skip to main content

Module package

Module package 

Source
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’s lib-* (PlatformRepository::addLibrary), none (numeric key) for the self.version links added by AliasPackage. Pool::match looks 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
SourceRef

Enums§

LinkType
Origin
Where a package comes from (getRepository() in Composer).