1
0
Fork 0

TableHelper is deprecated, switched to Table

pull/3761/head
Rob Bast 2015-02-06 15:23:13 +01:00
parent 833ce98426
commit 3dd93c91b8
1 changed files with 4 additions and 4 deletions

View File

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