Esempio n. 1
0
 /**
  * @inheritdoc
  */
 public function getProductsCategories(array $products, Struct\ShopContextInterface $context)
 {
     $categories = $this->categoryGateway->getProductsCategories($products, $context);
     $result = [];
     foreach ($categories as $key => $productCategories) {
         $result[$key] = $this->filterValidCategories($productCategories, $context);
     }
     return $result;
 }
Esempio n. 2
0
 /**
  * @inheritdoc
  */
 public function getList($ids, Struct\ShopContextInterface $context)
 {
     $categories = $this->categoryGateway->getList($ids, $context);
     return $this->filterValidCategories($categories, $context);
 }