mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/14895] Use SymfonyIO styling
PHPBB3-14895
This commit is contained in:
parent
74cd513a88
commit
d275fefc69
1 changed files with 4 additions and 5 deletions
|
@ -15,6 +15,7 @@ namespace phpbb\console\command\reparser;
|
||||||
|
|
||||||
use Symfony\Component\Console\Input\InputInterface;
|
use Symfony\Component\Console\Input\InputInterface;
|
||||||
use Symfony\Component\Console\Output\OutputInterface;
|
use Symfony\Component\Console\Output\OutputInterface;
|
||||||
|
use Symfony\Component\Console\Style\SymfonyStyle;
|
||||||
|
|
||||||
class list_all extends \phpbb\console\command\command
|
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)
|
protected function execute(InputInterface $input, OutputInterface $output)
|
||||||
{
|
{
|
||||||
$output->writeln('<info>' . $this->user->lang('CLI_DESCRIPTION_REPARSER_AVAILABLE') . '</info>');
|
$io = new SymfonyStyle($input, $output);
|
||||||
foreach ($this->reparser_names as $reparser_name)
|
$io->section($this->user->lang('CLI_DESCRIPTION_REPARSER_AVAILABLE'));
|
||||||
{
|
$io->listing($this->reparser_names);
|
||||||
$output->writeln($reparser_name);
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue