Skip to main content

Module session

Module session 

Source
Expand description

Setup of an update: what Factory::createComposer then Installer::doUpdate do before createPool: root, platform, repositories (global config + composer.json, same merge rules as Config::merge), lock repository, Request. Rust-side replica of tools/oracle-pool.php.

Structs§

FlexSession
Everything Installer::doUpdate has at hand right before createPool. symfony/flex active for this resolution: its requirement and index.
MergedConfig
Merged configuration relevant to the resolver.
RepoConfig
Config::$repositories after merging: (name or index, definition).
SessionError
SolveReport
Result of a solve: the transaction and what is needed to compare it with Composer.
UpdateOptions
Options of an update (Installer::setUpdateAllowList, setUpdateAllowTransitiveDependencies).
UpdateSession

Enums§

RepoKey
SessionErrorKind
What Composer does with the error: an unsolvable set (SolverProblemsException) means exit code 2 from Installer::run, everything else is an exception that propagates.

Functions§

install_policy_problems
Running the lock pool through the filter list filter in install scope (Installer::doInstall -> createFilterListPoolFilter(BLOCK_SCOPE_INSTALL)): Composer’s problems for the removed locked versions, in lock order; empty when nothing blocks. Warnings (ignored unreachable repositories) are returned separately.
merge_repositories
Config::merge for the repositories key, applied in order (defaults, global config, composer.json).