config = $config; $this->cacheManager = $cacheManager; } protected function configure() { $this->setName('msp:security:tfa:disable'); $this->setDescription('Globally disable two factor auth'); parent::configure(); } /** * @SuppressWarnings("PHPMD.UnusedFormalParameter") */ protected function execute(InputInterface $input, OutputInterface $output) { $this->config->saveConfig( TfaInterface::XML_PATH_ENABLED, '0', 'default', 0 ); $this->cacheManager->flush(['config']); } }