Merge remote-tracking branch 'alcohol/update-tablehelper-to-table'

main
Jordi Boggiano 9 years ago
commit 84d4594278

@ -25,7 +25,7 @@
"php": ">=5.3.2",
"justinrainbow/json-schema": "~1.3",
"seld/jsonlint": "~1.0",
"symfony/console": "~2.3",
"symfony/console": "~2.5",
"symfony/finder": "~2.2",
"symfony/process": "~2.1"
},

2
composer.lock generated

@ -4,7 +4,7 @@
"Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
"hash": "2bc9cc8aa706b68d611d7058e4eb8de7",
"hash": "ba903feb0f02e7916ecbe23f857bcce4",
"packages": [
{
"name": "justinrainbow/json-schema",

@ -18,7 +18,7 @@ use Composer\Plugin\CommandEvent;
use Composer\Plugin\PluginEvents;
use Composer\Package\PackageInterface;
use Composer\Repository\RepositoryInterface;
use Symfony\Component\Console\Helper\TableHelper;
use Symfony\Component\Console\Helper\Table;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
@ -73,9 +73,9 @@ EOT
$output->writeln('Licenses: <comment>'.(implode(', ', $root->getLicense()) ?: 'none').'</comment>');
$output->writeln('Dependencies:');
$table = $this->getHelperSet()->get('table');
$table->setLayout(TableHelper::LAYOUT_BORDERLESS);
$table->setHorizontalBorderChar('');
$table = new Table($output);
$table->setStyle('borderless');
$table->getStyle()->setHorizontalBorderChar('');
foreach ($packages as $package) {
$table->addRow(array(
$package->getPrettyName(),

Loading…
Cancel
Save