/** * Constructor. * * @param FactoryInterface $variantFactory * @param SetBuilderInterface $setBuilder * @param ValidatorInterface $validator * @param EventDispatcherInterface $eventDispatcher */ public function __construct(FactoryInterface $variantFactory, SetBuilderInterface $setBuilder, ValidatorInterface $validator, EventDispatcherInterface $eventDispatcher) { parent::__construct($variantFactory, $setBuilder); $this->validator = $validator; $this->eventDispatcher = $eventDispatcher; }
/** * Constructor. * * @param RepositoryInterface $variantRepository * @param ValidatorInterface $validator * @param EventDispatcherInterface $eventDispatcher */ public function __construct(RepositoryInterface $variantRepository, ValidatorInterface $validator, EventDispatcherInterface $eventDispatcher) { parent::__construct($variantRepository); $this->validator = $validator; $this->eventDispatcher = $eventDispatcher; }