/** * @param PluginsByTechnicalNameRequest $context * @return PluginStruct[] */ public function getPlugins(PluginsByTechnicalNameRequest $context) { $query = $this->getQuery(); $query->andWhere('plugin.name IN (:names)')->setParameter(':names', $context->getTechnicalNames(), Connection::PARAM_STR_ARRAY); /**@var $statement \PDOStatement*/ $statement = $query->execute(); $data = $statement->fetchAll(\PDO::FETCH_ASSOC); return $this->iteratePlugins($data); }
/** * @param PluginsByTechnicalNameRequest $context * @return PluginStruct[] */ public function getPlugins(PluginsByTechnicalNameRequest $context) { $params = ['locale' => $context->getLocale(), 'shopwareVersion' => $context->getShopwareVersion(), 'technicalNames' => $context->getTechnicalNames()]; $data = $this->storeClient->doGetRequest('/pluginStore/pluginsByName', $params); return $this->hydrator->hydrateStorePlugins($data); }