throw new DecorationPatternException(self::
class);
} #[Route(path: '/store-api/account/customer', name: 'store-api.account.customer', methods: ['GET', 'POST'], defaults: ['_loginRequired' => true, '_loginRequiredAllowGuest' => true, '_entity' => 'customer'])]
public function load(Request
$request, SalesChannelContext
$context, Criteria
$criteria, CustomerEntity
$customer): CustomerResponse
{ $criteria->
setIds([$customer->
getId()]);
$customerEntity =
$this->customerRepository->
search($criteria,
$context->
getContext())->
first();
return new CustomerResponse($customerEntity);
}}