Skip to content
This repository has been archived by the owner on Dec 19, 2019. It is now read-only.

Commit

Permalink
#741: Add extension point to set custom parameters to Query Context o…
Browse files Browse the repository at this point in the history
…bject
  • Loading branch information
naydav committed Jun 14, 2019
1 parent 7b3024a commit 892c131
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/code/Magento/GraphQl/Model/Query/ContextFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function create(): ContextInterface

$extensionAttributes = $this->extensionAttributesFactory->create(
ContextInterface::class,
$contextParameters->getExtensionAttributes()
$contextParameters->getExtensionAttributesData()
);

$context = $this->objectManager->create(
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/GraphQl/Model/Query/ContextParameters.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function addExtensionAttribute(string $key, $value): void
/**
* @inheritdoc
*/
public function getExtensionAttributes(): array
public function getExtensionAttributesData(): array
{
return $this->extensionAttributesData;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ public function addExtensionAttribute(string $key, $value): void;
*
* @return array
*/
public function getExtensionAttributes(): array;
public function getExtensionAttributesData(): array;
}

0 comments on commit 892c131

Please sign in to comment.