Log in
Model

SetCustomerStore

Magento\Customer\Model\SetCustomerStore

What it does

This class is responsible for setting the current store context for a customer based on their website or store ID.

Developers use this when they need to ensure operations are performed in the correct store scope during customer-related processes, such as customer creation, updates, or authentication where the store context needs to be established from request data.

Public Methods

  • setStore()