1
0
Fork 0

Merge pull request #4662 from Soullivaneuh/phpdoc-completion

Depends command: Add phpdoc blocks for IDE completion
pull/4670/head
Rob 2015-12-03 11:38:29 +01:00
commit 9959d33dd0
1 changed files with 4 additions and 0 deletions

View File

@ -13,6 +13,8 @@
namespace Composer\Command;
use Composer\DependencyResolver\Pool;
use Composer\Package\Link;
use Composer\Package\PackageInterface;
use Composer\Repository\ArrayRepository;
use Composer\Repository\CompositeRepository;
use Composer\Plugin\CommandEvent;
@ -87,8 +89,10 @@ EOT
$messages = array();
$outputPackages = array();
$io = $this->getIO();
/** @var PackageInterface $package */
foreach ($repo->getPackages() as $package) {
foreach ($types as $type) {
/** @var Link $link */
foreach ($package->{'get'.$linkTypes[$type][0]}() as $link) {
if ($link->getTarget() === $needle) {
if (!isset($outputPackages[$package->getName()])) {