From 05e08889edde0a3b3347257b272786e4e7aff32d Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Wed, 15 Apr 2015 02:23:46 +0100 Subject: [PATCH] Add BC method for old usage, refs #3857 --- src/Composer/DependencyResolver/DefaultPolicy.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Composer/DependencyResolver/DefaultPolicy.php b/src/Composer/DependencyResolver/DefaultPolicy.php index 2ebe95454..b169c10fe 100644 --- a/src/Composer/DependencyResolver/DefaultPolicy.php +++ b/src/Composer/DependencyResolver/DefaultPolicy.php @@ -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);