Properties

$preferStable

$preferStable : 

Type

$preferLowest

$preferLowest : 

Type

Methods

__construct()

__construct(  $preferStable = false,   $preferLowest = false) 

Parameters

$preferStable
$preferLowest

selectPreferredPackages()

selectPreferredPackages(\Composer\DependencyResolver\Pool  $pool, array  $installedMap, array  $literals,   $requiredPackage = null) 

Parameters

\Composer\DependencyResolver\Pool $pool
array $installedMap
array $literals
$requiredPackage

groupLiteralsByNamePreferInstalled()

groupLiteralsByNamePreferInstalled(\Composer\DependencyResolver\Pool  $pool, array  $installedMap,   $literals) 

Parameters

\Composer\DependencyResolver\Pool $pool
array $installedMap
$literals

replaces()

replaces(\Composer\Package\PackageInterface  $source, \Composer\Package\PackageInterface  $target) : boolean

Checks if source replaces a package with the same name as target.

Replace constraints are ignored. This method should only be used for prioritisation, not for actual constraint verification.

Parameters

\Composer\Package\PackageInterface $source
\Composer\Package\PackageInterface $target

Returns

boolean

pruneToHighestPriorityOrInstalled()

pruneToHighestPriorityOrInstalled(\Composer\DependencyResolver\Pool  $pool, array  $installedMap, array  $literals) 

Assumes that installed packages come first and then all highest priority packages

Parameters

\Composer\DependencyResolver\Pool $pool
array $installedMap
array $literals

pruneRemoteAliases()

pruneRemoteAliases(\Composer\DependencyResolver\Pool  $pool, array  $literals) 

Assumes that locally aliased (in root package requires) packages take priority over branch-alias ones

If no package is a local alias, nothing happens

Parameters

\Composer\DependencyResolver\Pool $pool
array $literals