CustomerManagement
Magento\Sales\Model\Order\CustomerManagement
What it does
This class manages the conversion of guest checkout orders into customer accounts in Magento 2.
Developers use this class when they need to programmatically create a customer account from an existing guest order, which automatically associates the order with the newly created customer and transfers relevant address information.
It's commonly used in post-checkout flows where guests are offered the option to create an account.
Public Methods
- create()