/** * Document constructor. * @param AttributeValueFactory $attributeValueFactory * @param GroupRepositoryInterface $groupRepository * @param CustomerMetadataInterface $customerMetadata * @param StoreManagerInterface $storeManager */ public function __construct(AttributeValueFactory $attributeValueFactory, GroupRepositoryInterface $groupRepository, CustomerMetadataInterface $customerMetadata, StoreManagerInterface $storeManager) { parent::__construct($attributeValueFactory); $this->customerMetadata = $customerMetadata; $this->groupRepository = $groupRepository; $this->storeManager = $storeManager; }
/** * Document constructor. * @param AttributeValueFactory $attributeValueFactory * @param GroupRepositoryInterface $groupRepository */ public function __construct(AttributeValueFactory $attributeValueFactory, GroupRepositoryInterface $groupRepository) { parent::__construct($attributeValueFactory); $this->groupRepository = $groupRepository; }