Skip to content

Commit

Permalink
added showing list of packages if verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Aug 27, 2016
1 parent 8269307 commit 5de8257
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,9 @@ protected function assembleFile($name, array $configs)
}

/**
* Read extra config.
* @param string $file
* Reads extra config.
* @param PackageInterface $__package
* @param string $__file
* @return array
*/
protected function readConfigFile(PackageInterface $__package, $__file)
Expand All @@ -237,7 +238,7 @@ protected function readConfigFile(PackageInterface $__package, $__file)
if ($__skippable) {
return [];
} else {
$this->io->writeError('<error>Non existent extension config file</error> ' . $__file . ' in ' . $__package->getPrettyName());
$this->io->writeError('<error>Non existent config file</error> ' . $__file . ' in ' . $__package->getPrettyName());
}
}
extract($this->data);
Expand Down Expand Up @@ -380,7 +381,11 @@ public function findPackages()
}
$this->orderedList = [];
$this->iteratePackage($root, true);
//var_dump(implode("\n", $this->orderedList)); die();

if ($this->io->isVerbose()) {
$packages = implode("\n", $this->orderedList);
$this->io->writeError($packages);
}
$res = [];
foreach ($this->orderedList as $name) {
$res[] = $this->plainList[$name];
Expand Down

0 comments on commit 5de8257

Please sign in to comment.