setUserId((int)$customer->getId()); $context->setUserType(UserContextInterface::USER_TYPE_CUSTOMER); } }