Idで顧客を読み込む最良の方法は何ですか?顧客インターフェースまたは顧客工場または別の方法を使用していますか?
私が見つけたほとんどのソリューションでは、直接使用することで行われますobjectManager(決して使用しないでください)。  
Idで顧客を読み込む最良の方法は何ですか?顧客インターフェースまたは顧客工場または別の方法を使用していますか?
私が見つけたほとんどのソリューションでは、直接使用することで行われますobjectManager(決して使用しないでください)。  
回答:
あなたの場合、私は使用します\Magento\Customer\Api\CustomerRepositoryInterface:
protected $_customerRepositoryInterface;
public function __construct(
    ....
    \Magento\Customer\Api\CustomerRepositoryInterface $customerRepositoryInterface,
    ....
) {
    ....
    $this->_customerRepositoryInterface = $customerRepositoryInterface;
}次に、あなたのコードで呼び出すことができます:
$customerId = 1;
$customer = $this->_customerRepositoryInterface->getById($customerId);