Model
CustomerManagement
Magento\Sales\Model\Order\CustomerManagement
What it does
This class converts guest orders into customer accounts in Magento 2.
Developers use it when implementing functionality to create a customer account from an existing guest order, such as after checkout completion.
It extracts customer data from the order, creates the account through Account Management, and links the new customer to the order.
Public Methods
- create()