setName('twofactorauth:cleanup'); $this->setDescription('Clean up the two-factor user-provider association of an uninstalled/removed provider'); $this->addArgument('provider-id', InputArgument::REQUIRED); } protected function execute(InputInterface $input, OutputInterface $output): int { $providerId = $input->getArgument('provider-id'); $this->registry->cleanUp($providerId); $output->writeln("All user-provider associations for provider $providerId have been removed."); return 0; } }