extensionRegistry = $extensionRegistry; parent::__construct(); } protected function configure(): void { $this ->setDescription('List extensions'); } protected function execute(InputInterface $input, OutputInterface $output): ?int { $extensions = $this->extensionRegistry->getExtensions(); $rows = []; foreach ($extensions as $extension) { $rows[] = [$extension->getClass(), $extension->getName()]; } $io = new SymfonyStyle($input, $output); if (! empty($rows)) { $io->table(['Class', 'Extension name'], $rows); } else { $io->caution('No installed extensions could be found'); } return 0; } }