Skip to content

Commit

Permalink
magento/graphql-ce#741: Add extension point to set custom parameters …
Browse files Browse the repository at this point in the history
…to Query Context object
  • Loading branch information
naydav committed Jun 13, 2019
1 parent ed35766 commit ac05279
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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];
}
Expand Down

0 comments on commit ac05279

Please sign in to comment.