[ Index ] |
PHP Cross Reference of phpBB-3.2.11-deutsch |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * 4 * This file is part of the phpBB Forum Software package. 5 * 6 * @copyright (c) phpBB Limited <https://www.phpbb.com> 7 * @license GNU General Public License, version 2 (GPL-2.0) 8 * 9 * For full copyright and license information, please see 10 * the docs/CREDITS.txt file. 11 * 12 */ 13 14 namespace phpbb\console\command\reparser; 15 16 use Symfony\Component\Console\Input\InputInterface; 17 use Symfony\Component\Console\Output\OutputInterface; 18 use Symfony\Component\Console\Style\SymfonyStyle; 19 20 class list_all extends \phpbb\console\command\command 21 { 22 /** 23 * @var string[] Names of the reparser services 24 */ 25 protected $reparser_names; 26 27 /** 28 * Constructor 29 * 30 * @param \phpbb\user $user 31 * @param \phpbb\di\service_collection $reparsers 32 */ 33 public function __construct(\phpbb\user $user, \phpbb\di\service_collection $reparsers) 34 { 35 parent::__construct($user); 36 $this->reparser_names = array(); 37 foreach ($reparsers as $reparser) 38 { 39 // Store the names without the "text_reparser." prefix 40 $this->reparser_names[] = $reparser->get_name(); 41 } 42 } 43 44 /** 45 * Sets the command name and description 46 * 47 * @return null 48 */ 49 protected function configure() 50 { 51 $this 52 ->setName('reparser:list') 53 ->setDescription($this->user->lang('CLI_DESCRIPTION_REPARSER_LIST')) 54 ; 55 } 56 57 /** 58 * Executes the command reparser:list 59 * 60 * @param InputInterface $input 61 * @param OutputInterface $output 62 * @return integer 63 */ 64 protected function execute(InputInterface $input, OutputInterface $output) 65 { 66 $io = new SymfonyStyle($input, $output); 67 $io->section($this->user->lang('CLI_DESCRIPTION_REPARSER_AVAILABLE')); 68 $io->listing($this->reparser_names); 69 70 return 0; 71 } 72 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Nov 11 20:33:01 2020 | Cross-referenced by PHPXref 0.7.1 |