setDescription('List all configuration sections'); $this->setHelp('This command shows a list of available configuration sections.'); } protected function execute(InputInterface $input, OutputInterface $output) { $ranges = ConfigurationModel::getConfig(); $data = []; foreach (array_keys($ranges) as $range) { $data[] = [$range ?? _('Ohne Kategorie')]; } $table = new Table($output); $table->setHeaders(['Range']) ->setRows($data) ->setStyle('box') ->render(); return Command::SUCCESS; } }