aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Friedman <maf675@gmail.com>2016-12-07 23:49:54 -0800
committerMatt Friedman <maf675@gmail.com>2016-12-07 23:49:54 -0800
commitd275fefc69bae24f547802d824607c9a054ff6d2 (patch)
tree7152e5dd0ae661d82654853e8b507ee7d125f88e
parent74cd513a8892285032a248322e3ce52b19645075 (diff)
downloadforums-d275fefc69bae24f547802d824607c9a054ff6d2.tar
forums-d275fefc69bae24f547802d824607c9a054ff6d2.tar.gz
forums-d275fefc69bae24f547802d824607c9a054ff6d2.tar.bz2
forums-d275fefc69bae24f547802d824607c9a054ff6d2.tar.xz
forums-d275fefc69bae24f547802d824607c9a054ff6d2.zip
[ticket/14895] Use SymfonyIO styling
PHPBB3-14895
-rw-r--r--phpBB/phpbb/console/command/reparser/list_all.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/phpBB/phpbb/console/command/reparser/list_all.php b/phpBB/phpbb/console/command/reparser/list_all.php
index 7dd0571975..028468649d 100644
--- a/phpBB/phpbb/console/command/reparser/list_all.php
+++ b/phpBB/phpbb/console/command/reparser/list_all.php
@@ -15,6 +15,7 @@ namespace phpbb\console\command\reparser;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
+use Symfony\Component\Console\Style\SymfonyStyle;
class list_all extends \phpbb\console\command\command
{
@@ -62,11 +63,9 @@ class list_all extends \phpbb\console\command\command
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
- $output->writeln('<info>' . $this->user->lang('CLI_DESCRIPTION_REPARSER_AVAILABLE') . '</info>');
- foreach ($this->reparser_names as $reparser_name)
- {
- $output->writeln($reparser_name);
- }
+ $io = new SymfonyStyle($input, $output);
+ $io->section($this->user->lang('CLI_DESCRIPTION_REPARSER_AVAILABLE'));
+ $io->listing($this->reparser_names);
return 0;
}