/** * @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(); }
/** * @param GroupRepositoryInterface $groupRepository * @param BulkSaverInterface $productSaver * @param ProductTemplateUpdaterInterface $templateUpdater * @param ValidatorInterface $validator * @param ProductMassActionRepositoryInterface $prodMassActionRepo */ public function __construct(GroupRepositoryInterface $groupRepository, BulkSaverInterface $productSaver, ProductTemplateUpdaterInterface $templateUpdater, ValidatorInterface $validator, ProductMassActionRepositoryInterface $prodMassActionRepo) { parent::__construct($productSaver); $this->groupRepository = $groupRepository; $this->templateUpdater = $templateUpdater; $this->validator = $validator; $this->productMassActionRepo = $prodMassActionRepo; }
/** * Constructor * * @param ProductBuilder $productBuilder * @param ProductUpdaterInterface $productUpdater * @param UserContext $userContext * @param CatalogContext $catalogContext * @param ProductMassActionManager $massActionManager * @param NormalizerInterface $normalizer * @param BulkSaverInterface $productSaver */ public function __construct(ProductBuilder $productBuilder, ProductUpdaterInterface $productUpdater, UserContext $userContext, CatalogContext $catalogContext, ProductMassActionManager $massActionManager, NormalizerInterface $normalizer, BulkSaverInterface $productSaver) { parent::__construct($productSaver); $this->productBuilder = $productBuilder; $this->productUpdater = $productUpdater; $this->userContext = $userContext; $this->catalogContext = $catalogContext; $this->massActionManager = $massActionManager; $this->displayedAttributes = new ArrayCollection(); $this->values = new ArrayCollection(); $this->normalizer = $normalizer; }
/** * @param GroupRepositoryInterface $groupRepository * @param BulkSaverInterface $productSaver */ public function __construct(GroupRepositoryInterface $groupRepository, BulkSaverInterface $productSaver) { parent::__construct($productSaver); $this->groupRepository = $groupRepository; $this->groups = new ArrayCollection(); }