From fec34d89ae2d87117e120a3c51ec7bc8d2df20da Mon Sep 17 00:00:00 2001 From: Valerii Naida Date: Wed, 19 Jun 2019 13:08:55 -0500 Subject: [PATCH] magento/graphql-ce#741: Add extension point to set custom parameters to Query Context object --- .../Model/Context/AddUserInfoToContext.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/code/Magento/CustomerGraphQl/Model/Context/AddUserInfoToContext.php b/app/code/Magento/CustomerGraphQl/Model/Context/AddUserInfoToContext.php index 12a9f7c4886d..63766ff03314 100644 --- a/app/code/Magento/CustomerGraphQl/Model/Context/AddUserInfoToContext.php +++ b/app/code/Magento/CustomerGraphQl/Model/Context/AddUserInfoToContext.php @@ -21,13 +21,21 @@ class AddUserInfoToContext implements ContextParametersProcessorInterface */ private $userContext; + /** + * @var GetCustomer + */ + private $getCustomer; + /** * @param UserContextInterface $userContext + * @param GetCustomer $getCustomer */ public function __construct( - UserContextInterface $userContext + UserContextInterface $userContext, + GetCustomer $getCustomer ) { $this->userContext = $userContext; + $this->getCustomer = $getCustomer; } /**