setDescription('Removes a plugin given its name') ->addArgument('name', InputArgument::REQUIRED, 'The name of the plugin'); } protected function doExecute(InputInterface $input, OutputInterface $output) { $name = $input->getArgument('name'); $path = $this->container['plugins.directory'] . DIRECTORY_SEPARATOR . $name; $output->write("Removing $name..."); $this->container['filesystem']->remove($path); $output->writeln(" OK"); $this->updateConfigFiles($input, $output); return 0; } }