Skip to content

Commit

Permalink
#86: Use Table class
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Rombauts committed Apr 17, 2018
1 parent c11bc6f commit 0bd7ad3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Joomlatools/Console/Command/Plugin/ListAll.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
namespace Joomlatools\Console\Command\Plugin;

use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Helper\Table;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

Expand All @@ -34,8 +35,9 @@ protected function execute(InputInterface $input, OutputInterface $output)

$headers = array('Plugin package', 'Version');

$this->getHelperSet()->get('table')
->setHeaders($headers)
$table = new Table($output);

$table->setHeaders($headers)
->setRows($rows)
->render($output);
}
Expand Down

0 comments on commit 0bd7ad3

Please sign in to comment.