Log in
Model

CustomerIdProvider

Magento\Customer\Model\CustomerIdProvider

What it does

This model provides a simple utility to extract the customer ID from the current HTTP request.

Developers use this class when they need to retrieve the customer ID from request parameters in a consistent, type-safe way across the application, particularly in controllers or services that handle customer-related operations.

Public Methods

  • getCustomerId()