setName('ldap:delete-config') ->setDescription('deletes an existing LDAP configuration') ->addArgument( 'configID', InputArgument::REQUIRED, 'the configuration ID' ) ; } protected function execute(InputInterface $input, OutputInterface $output): int { $configPrefix = $input->getArgument('configID'); $success = $this->helper->deleteServerConfiguration($configPrefix); if (!$success) { $output->writeln("Cannot delete configuration with configID '{$configPrefix}'"); return self::FAILURE; } $output->writeln("Deleted configuration with configID '{$configPrefix}'"); return self::SUCCESS; } }