From 3dd93c91b80036c5e6e17790239e8a07a4fe384a Mon Sep 17 00:00:00 2001 From: Rob Bast Date: Fri, 6 Feb 2015 15:23:13 +0100 Subject: [PATCH] TableHelper is deprecated, switched to Table --- src/Composer/Command/LicensesCommand.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Composer/Command/LicensesCommand.php b/src/Composer/Command/LicensesCommand.php index 8ab9d94b4..757de6d87 100644 --- a/src/Composer/Command/LicensesCommand.php +++ b/src/Composer/Command/LicensesCommand.php @@ -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: '.(implode(', ', $root->getLicense()) ?: 'none').''); $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(),