Пример #1
0
 /**
  * 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;
 }
Пример #2
0
 /**
  * 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;
 }