From ed35766bf6218ba97c99575a7e2c3484c3caafa2 Mon Sep 17 00:00:00 2001 From: Valerii Naida Date: Thu, 13 Jun 2019 17:37:11 -0500 Subject: [PATCH] magento/graphql-ce#741: Add extension point to set custom parameters to Query Context object --- .../Magento/GraphQl/Model/Query/ContextFactory.php | 13 ++++++++----- app/code/Magento/GraphQl/composer.json | 1 - 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/app/code/Magento/GraphQl/Model/Query/ContextFactory.php b/app/code/Magento/GraphQl/Model/Query/ContextFactory.php index 47176b41ba44d..8b74eb8f6e484 100644 --- a/app/code/Magento/GraphQl/Model/Query/ContextFactory.php +++ b/app/code/Magento/GraphQl/Model/Query/ContextFactory.php @@ -67,11 +67,14 @@ public function create(): ContextInterface $contextParameters->getExtensionAttributes() ); - $context = $this->objectManager->create(ContextInterface::class, [ - 'userType' => $contextParameters->getUserType(), - 'userId' => $contextParameters->getUserId(), - 'extensionAttributes' => $extensionAttributes, - ]); + $context = $this->objectManager->create( + ContextInterface::class, + [ + 'userType' => $contextParameters->getUserType(), + 'userId' => $contextParameters->getUserId(), + 'extensionAttributes' => $extensionAttributes, + ] + ); return $context; } } diff --git a/app/code/Magento/GraphQl/composer.json b/app/code/Magento/GraphQl/composer.json index 3a1e8d1bfd9f4..51e93f01a6e5c 100644 --- a/app/code/Magento/GraphQl/composer.json +++ b/app/code/Magento/GraphQl/composer.json @@ -4,7 +4,6 @@ "type": "magento2-module", "require": { "php": "~7.1.3||~7.2.0", - "magento/module-authorization": "*", "magento/module-eav": "*", "magento/framework": "*" },