diff --git a/composer.json b/composer.json index 9fca7d74c..bf278f478 100644 --- a/composer.json +++ b/composer.json @@ -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" }, diff --git a/composer.lock b/composer.lock index 7d28fcb09..c6ba9d836 100644 --- a/composer.lock +++ b/composer.lock @@ -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", 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(),