Skip to content

Commit ed35766

Browse files
committed
magento/graphql-ce#741: Add extension point to set custom parameters to Query Context object
1 parent 5d12f8e commit ed35766

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

app/code/Magento/GraphQl/Model/Query/ContextFactory.php

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,14 @@ public function create(): ContextInterface
6767
$contextParameters->getExtensionAttributes()
6868
);
6969

70-
$context = $this->objectManager->create(ContextInterface::class, [
71-
'userType' => $contextParameters->getUserType(),
72-
'userId' => $contextParameters->getUserId(),
73-
'extensionAttributes' => $extensionAttributes,
74-
]);
70+
$context = $this->objectManager->create(
71+
ContextInterface::class,
72+
[
73+
'userType' => $contextParameters->getUserType(),
74+
'userId' => $contextParameters->getUserId(),
75+
'extensionAttributes' => $extensionAttributes,
76+
]
77+
);
7578
return $context;
7679
}
7780
}

app/code/Magento/GraphQl/composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"type": "magento2-module",
55
"require": {
66
"php": "~7.1.3||~7.2.0",
7-
"magento/module-authorization": "*",
87
"magento/module-eav": "*",
98
"magento/framework": "*"
109
},

0 commit comments

Comments
 (0)