public function getPluginInfo($name) { $action = sprintf('plugins/%s/info', $name); $plugin = $this->fetch($action, array()); if (!empty($plugin) && $this->shouldIgnorePlugin($plugin)) { return; } return $plugin; }
/** * @throws PluginInstallerException */ private function makeSurePluginNameIsValid() { try { $pluginDetails = $this->marketplaceClient->getPluginInfo($this->pluginName); } catch (\Exception $e) { throw new PluginInstallerException($e->getMessage()); } if (empty($pluginDetails)) { throw new PluginInstallerException('This plugin was not found in the Marketplace.'); } }