argument('name'); $pluginName = PluginManager::instance()->normalizeIdentifier($pluginName); if (!PluginManager::instance()->exists($pluginName)) { throw new \InvalidArgumentException(sprintf('Plugin "%s" not found.', $pluginName)); } $manager = UpdateManager::instance()->resetNotes(); $manager->rollbackPlugin($pluginName); foreach ($manager->getNotes() as $note) { $this->output->writeln($note); } $manager->resetNotes(); $this->output->writeln('Reinstalling plugin...'); $manager->updatePlugin($pluginName); foreach ($manager->getNotes() as $note) { $this->output->writeln($note); } } /** * Get the console command arguments. * @return array */ protected function getArguments() { return [ ['name', InputArgument::REQUIRED, 'The name of the plugin. Eg: AuthorName.PluginName'], ]; } /** * Get the console command options. * @return array */ protected function getOptions() { return []; } }