/** * @param ResourceInterface $resource * @param PropertyAccessorInterface $propertyAccessor * @param LocaleContextInterface $localeContext * @param FactoryInterface $translationFactory */ public function __construct(ResourceInterface $resource, PropertyAccessorInterface $propertyAccessor, LocaleContextInterface $localeContext, FactoryInterface $translationFactory) { parent::__construct($resource, $propertyAccessor); $this->localeContext = $localeContext; $this->translationFactory = $translationFactory; }
/** * @param ResourceInterface $resource * @param LocaleContextInterface $localeContext */ public function __construct(ResourceInterface $resource, LocaleContextInterface $localeContext) { parent::__construct($resource); $this->resource = $resource; $this->localeContext = $localeContext; }