setDescription('Deactivates an extension by extension key') ->setAliases(['extensionmanager:extension:uninstall', 'extension:uninstall']) ->addArgument( 'extensionkey', InputArgument::REQUIRED, 'The extension key of a currently activated extension.' ); } /** * Installs an extension * * @inheritdoc */ protected function execute(InputInterface $input, OutputInterface $output) { $io = new SymfonyStyle($input, $output); $extensionKey = $input->getArgument('extensionkey'); $objectManager = GeneralUtility::makeInstance(ObjectManager::class); $objectManager->get(InstallUtility::class)->uninstall($extensionKey); $io->success('Deactivated extension "' . $extensionKey . '" successfully.'); } }