providerPool = $providerPool; } protected function configure() { $this->setName('msp:security:tfa:providers'); $this->setDescription('List all available providers'); parent::configure(); } /** * @SuppressWarnings("PHPMD.UnusedFormalParameter") */ protected function execute(InputInterface $input, OutputInterface $output) { $providers = $this->providerPool->getProviders(); foreach ($providers as $provider) { $output->writeln(sprintf("%16s: %s", $provider->getCode(), $provider->getName())); } } }