[ 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 namespace phpbb\console\command\extension; 14 15 use Symfony\Component\Console\Input\InputInterface; 16 use Symfony\Component\Console\Output\OutputInterface; 17 use Symfony\Component\Console\Style\SymfonyStyle; 18 19 class show extends command 20 { 21 protected function configure() 22 { 23 $this 24 ->setName('extension:show') 25 ->setDescription($this->user->lang('CLI_DESCRIPTION_LIST_EXTENSIONS')) 26 ; 27 } 28 29 protected function execute(InputInterface $input, OutputInterface $output) 30 { 31 $io = new SymfonyStyle($input, $output); 32 33 $this->manager->load_extensions(); 34 $all = array_keys($this->manager->all_available()); 35 36 if (empty($all)) 37 { 38 $io->note($this->user->lang('CLI_EXTENSION_NOT_FOUND')); 39 return 3; 40 } 41 42 $enabled = array_keys($this->manager->all_enabled()); 43 $io->section($this->user->lang('CLI_EXTENSIONS_ENABLED')); 44 $io->listing($enabled); 45 46 $disabled = array_keys($this->manager->all_disabled()); 47 $io->section($this->user->lang('CLI_EXTENSIONS_DISABLED')); 48 $io->listing($disabled); 49 50 $purged = array_diff($all, $enabled, $disabled); 51 $io->section($this->user->lang('CLI_EXTENSIONS_AVAILABLE')); 52 $io->listing($purged); 53 } 54 }
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 |