Ejemplo n.º 1
0
 /**
  * @param CategoryManager    $categoryManager
  * @param BulkSaverInterface $productSaver
  */
 public function __construct(CategoryManager $categoryManager, BulkSaverInterface $productSaver)
 {
     parent::__construct($productSaver);
     $this->categoryManager = $categoryManager;
     $this->trees = $categoryManager->getEntityRepository()->findBy(array('parent' => null));
     $this->categories = array();
 }
 /**
  * {@inheritdoc}
  */
 public function perform()
 {
     parent::perform();
     if (null !== $this->group->getProductTemplate()) {
         $this->templateUpdater->update($this->group->getProductTemplate(), $this->objects);
     }
 }
 /**
  * {@inheritdoc}
  */
 public function perform()
 {
     parent::perform();
 }
Ejemplo n.º 4
0
 /**
  * @param GroupRepositoryInterface $groupRepository
  * @param BulkSaverInterface       $productSaver
  */
 public function __construct(GroupRepositoryInterface $groupRepository, BulkSaverInterface $productSaver)
 {
     parent::__construct($productSaver);
     $this->groupRepository = $groupRepository;
     $this->groups = new ArrayCollection();
 }
 /**
  * {@inheritdoc}
  */
 public function perform()
 {
     parent::perform();
     $this->productManager->handleAllMedia($this->objects);
 }