setName('dumpautoload'); $this->setDescription('Updates class loading information in non-composer mode.'); $this->setHelp('This command is only needed during development. The extension manager takes care of creating or updating this info properly during extension (de-)activation.'); $this->setAliases([ 'extensionmanager:extension:dumpclassloadinginformation', 'extension:dumpclassloadinginformation', ]); } /** * This command is not needed in composer mode. */ public function isEnabled(): bool { return !Environment::isComposerMode(); } /** * Dumps the class loading information */ protected function execute(InputInterface $input, OutputInterface $output): int { $io = new SymfonyStyle($input, $output); ClassLoadingInformation::dumpClassLoadingInformation(); $io->success('Class loading information has been updated.'); return Command::SUCCESS; } }