config = $config; $this->cacheManager = $cacheManager; } /** * @inheritdoc */ protected function configure() { $this->setName('msp:security:recaptcha:disable'); $this->setDescription('Disable backend reCaptcha'); parent::configure(); } /** * @inheritdoc * @SuppressWarnings("PHPMD.UnusedFormalParameter") */ protected function execute(InputInterface $input, OutputInterface $output) { $this->config->saveConfig( Config::XML_PATH_ENABLED_BACKEND, '0', 'default', 0 ); $this->cacheManager->flush(['config']); } }