From ac052797838d14fd26d07595f93e950c55e76d2e Mon Sep 17 00:00:00 2001 From: Valerii Naida Date: Thu, 13 Jun 2019 17:49:31 -0500 Subject: [PATCH] magento/graphql-ce#741: Add extension point to set custom parameters to Query Context object --- .../Magento/CustomerGraphQl/Model/Resolver/CreateCustomer.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/code/Magento/CustomerGraphQl/Model/Resolver/CreateCustomer.php b/app/code/Magento/CustomerGraphQl/Model/Resolver/CreateCustomer.php index 1ae22bcc12792..a42afb49db888 100644 --- a/app/code/Magento/CustomerGraphQl/Model/Resolver/CreateCustomer.php +++ b/app/code/Magento/CustomerGraphQl/Model/Resolver/CreateCustomer.php @@ -7,7 +7,6 @@ namespace Magento\CustomerGraphQl\Model\Resolver; -use Magento\Authorization\Model\UserContextInterface; use Magento\CustomerGraphQl\Model\Customer\CreateCustomerAccount; use Magento\CustomerGraphQl\Model\Customer\ExtractCustomerData; use Magento\Framework\GraphQl\Config\Element\Field; @@ -58,9 +57,6 @@ public function resolve( $customer = $this->createCustomerAccount->execute($args['input']); - $context->setUserId((int)$customer->getId()); - $context->setUserType(UserContextInterface::USER_TYPE_CUSTOMER); - $data = $this->extractCustomerData->execute($customer); return ['customer' => $data]; }