/** * @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(); }
/** * @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); }