Esempio n. 1
0
 /**
  * @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);
 }
Esempio n. 2
0
 /**
  * @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);
 }