/** * Constructor * * @param ValidatorInterface $validator * @param ConstraintGuesserInterface $constraintGuesser * @param ProductRepositoryInterface $productRepository */ public function __construct(ValidatorInterface $validator, ConstraintGuesserInterface $constraintGuesser, ProductRepositoryInterface $productRepository) { parent::__construct($validator); $this->constraintGuesser = $constraintGuesser; $this->productRepository = $productRepository; }
/** * Constructor * * @param ValidatorInterface $validator * @param ConstraintGuesserInterface $constraintGuesser * @param ProductManager $productManager */ public function __construct(ValidatorInterface $validator, ConstraintGuesserInterface $constraintGuesser, ProductManager $productManager) { parent::__construct($validator); $this->constraintGuesser = $constraintGuesser; $this->productManager = $productManager; }