How to get a customer by his ID with the \Magento\Customer\Model\CustomerRegistry::retrieve()?

customer-registry
customer
customer-load
(Dmitry Fedyuk) #1

Context: How to get a customer by his ID?

Interface

https://github.com/magento/magento2/blob/ab051bf/app/code/Magento/Customer/Model/CustomerRegistry.php#L68-L75

Implementation

Usages

1

2

3

4

5

https://github.com/magento/magento2/blob/ab051bf/app/code/Magento/Customer/Model/ResourceModel/AddressRepository.php#L207-L223

6

https://github.com/magento/magento2/blob/ab051bf/app/code/Magento/Customer/Model/ResourceModel/CustomerRepository.php#L246-L253

7

0 Likes

How to get a customer by his ID?
How to get a customer by his ID with the \Magento\Customer\Api\CustomerRepositoryInterface::getById()?
(Dmitry Fedyuk) #2

See also:

0 Likes