/** * @param StandardArrayConverterInterface $arrayConverter format converter * @param IdentifiableObjectRepositoryInterface $optionRepository option repository * @param UpdaterInterface $optionUpdater option updater * @param string $class attribute option class */ public function __construct(StandardArrayConverterInterface $arrayConverter, IdentifiableObjectRepositoryInterface $optionRepository, UpdaterInterface $optionUpdater, $class) { parent::__construct($optionRepository); $this->arrayConverter = $arrayConverter; $this->optionUpdater = $optionUpdater; $this->class = $class; }
/** * @param IdentifiableObjectRepositoryInterface $groupRepository * @param DenormalizerInterface $denormalizer * @param ValidatorInterface $validator * @param ObjectDetacherInterface $detacher * @param NormalizerInterface $normalizer * @param ProductTemplateMediaManager $templateMediaManager * @param FieldNameBuilder $fieldNameBuilder * @param string $groupClass * @param string $templateClass * @param string $format */ public function __construct(IdentifiableObjectRepositoryInterface $groupRepository, DenormalizerInterface $denormalizer, ValidatorInterface $validator, ObjectDetacherInterface $detacher, NormalizerInterface $normalizer, ProductTemplateMediaManager $templateMediaManager, FieldNameBuilder $fieldNameBuilder, $groupClass, $templateClass, $format) { parent::__construct($groupRepository, $denormalizer, $validator, $detacher, $groupClass); $this->normalizer = $normalizer; $this->templateMediaManager = $templateMediaManager; $this->fieldNameBuilder = $fieldNameBuilder; $this->templateClass = $templateClass; $this->format = $format; }
/** * @param IdentifiableObjectRepositoryInterface $repository repository to search the object in * @param DenormalizerInterface $denormalizer denormalizer used to transform array to object * @param ValidatorInterface $validator validator of the object * @param ObjectDetacherInterface $detacher detacher to remove it from UOW when skip * @param string $class class of the object to instanciate in case if need * @param string $format format use to denormalize */ public function __construct(IdentifiableObjectRepositoryInterface $repository, DenormalizerInterface $denormalizer, ValidatorInterface $validator, ObjectDetacherInterface $detacher, $class, $format) { parent::__construct($repository); $this->denormalizer = $denormalizer; $this->detacher = $detacher; $this->format = $format; $this->class = $class; $this->validator = $validator; }