Exemple #1
0
 public function write(array $items)
 {
     foreach ($items as $product) {
         $this->productManager->save($product);
         $this->stepExecution->incrementSummaryInfo('save');
     }
     $this->cacheClearer->clear();
 }
 /**
  * {@inheritdoc}
  */
 public function write(array $variantGroups)
 {
     foreach ($variantGroups as $variantGroup) {
         $this->saveVariantGroup($variantGroup);
         if ($this->isCopyValues()) {
             $this->copyValuesToProducts($variantGroup);
         }
     }
     $this->cacheClearer->clear();
 }
 /**
  * {@inheritdoc}
  */
 public function flush()
 {
     $this->cacheClearer->clear(true);
 }