1
0
Fork 0

Add BC method for old usage, refs #3857

pull/3789/merge
Jordi Boggiano 2015-04-15 02:23:46 +01:00
parent 6b3178b169
commit 05e08889ed
1 changed files with 8 additions and 0 deletions

View File

@ -62,6 +62,14 @@ class DefaultPolicy implements PolicyInterface
return $pool->getPriority($package->getRepository());
}
/**
* @deprecated Method has been renamed to selectPreferredPackages, you should update usages
*/
public function selectPreferedPackages(Pool $pool, array $installedMap, array $literals, $requiredPackage = null)
{
return $this->selectPreferredPackages($pool, $installedMap, $literals, $requiredPackage);
}
public function selectPreferredPackages(Pool $pool, array $installedMap, array $literals, $requiredPackage = null)
{
$packages = $this->groupLiteralsByNamePreferInstalled($pool, $installedMap, $literals);