lists = $lists; parent::__construct(); } /** * {@inheritdoc} */ protected function configure() { $this->setName('info:language:list') ->setDescription('Displays the list of available language locales'); parent::configure(); } /** * {@inheritdoc} */ protected function execute(InputInterface $input, OutputInterface $output) { $table = $this->getHelperSet()->get('table'); $table->setHeaders(['Language', 'Code']); foreach ($this->lists->getLocaleList() as $key => $locale) { $table->addRow([$locale, $key]); } $table->render($output); } }