mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-23 17:10:53 +01:00
[ticket/14895] Use SymfonyIO styling
PHPBB3-14895
This commit is contained in:
parent
74cd513a88
commit
d275fefc69
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user