Composer API
Class

Composer\DependencyResolver\DefaultPolicy

class DefaultPolicy implements PolicyInterface

Methods

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

versionCompare(PackageInterface $a, PackageInterface $b, $operator)

findUpdatePackages(Pool $pool, array $installedMap, PackageInterface $package, $mustMatchName = false)

getPriority(Pool $pool, PackageInterface $package)

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

compareByPriorityPreferInstalled(Pool $pool, array $installedMap, PackageInterface $a, PackageInterface $b, $requiredPackage = null, $ignoreReplace = false)

Details

at line 29
public __construct($preferStable = false, $preferLowest = false)

Parameters

$preferStable
$preferLowest

at line 35
public versionCompare(PackageInterface $a, PackageInterface $b, $operator)

Parameters

PackageInterface $a
PackageInterface $b
$operator

at line 47
public findUpdatePackages(Pool $pool, array $installedMap, PackageInterface $package, $mustMatchName = false)

Parameters

Pool $pool
array $installedMap
PackageInterface $package
$mustMatchName

at line 60
public getPriority(Pool $pool, PackageInterface $package)

Parameters

Pool $pool
PackageInterface $package

at line 65
public selectPreferredPackages(Pool $pool, array $installedMap, array $literals, $requiredPackage = null)

Parameters

Pool $pool
array $installedMap
array $literals
$requiredPackage

at line 117
public compareByPriorityPreferInstalled(Pool $pool, array $installedMap, PackageInterface $a, PackageInterface $b, $requiredPackage = null, $ignoreReplace = false)

Parameters

Pool $pool
array $installedMap
PackageInterface $a
PackageInterface $b
$requiredPackage
$ignoreReplace