Skip to main content

Module pool

Module pool 

Source
Expand description

Port of Composer\DependencyResolver\{Request, PoolBuilder, Pool} and Composer\Repository\RepositorySet (docs/reference/resolver/). The pool is the ordered list of packages the solver will see: the order is Composer’s, index by index, because the literal ids depend on it.

Structs§

OrderedMap
String-keyed PHP array: insertion order, in-place rewrite.
Pool
PoolError
PrePoolFilter
What a PRE_POOL_CREATE listener does to the loaded packages before the pool exists — symfony/flex’s truncatePackages is the one emulated (flex_filter): the root constraints it consults, the requirement and the index.
RepositorySet
Composer\Repository\RepositorySet.
Request
Composer\DependencyResolver\Request. Packages are arena indices; the PHP arrays keyed by spl_object_id become ordered lists without duplicates.
TemporaryConstraint
A --with constraint, with the text it was written as: an explanation of an unsolvable set quotes that text (getPrettyString), not the compiled interval.

Enums§

Repository
A repository of the RepositorySet, in insertion order.
UpdateMode
Request::UPDATE_*.

Functions§

array_repository_load_packages
ArrayRepository::loadPackages (root repository).
package_name_regexp
BasePackage::packageNameToRegexp.
set_source_dist_references
Package::setSourceDistReferences, applied to the base package and its aliases (an AliasPackage delegates its references to the aliased package).

Type Aliases§

FilterListRemoved
Composer\DependencyResolver\Pool: 1-based ids in construction order. Versions removed by a filter list: name -> (version, entries).