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

- added extended docs
  • Loading branch information
lenaorobei committed Jun 14, 2019
1 parent 8831221 commit 13ea1f8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/code/Magento/CustomerGraphQl/etc/graphql/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
</argument>
</arguments>
</type>
</config>
</config>
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@
namespace Magento\GraphQl\Model\Query;

/**
* Extension point for adding custom parameters to context object
* Adding custom parameters to context object:
*
* - Add new contextParametersProcessors item to ContextFactory in the di.xml.
* - Class must extend ContextParametersProcessorInterface.
* - Implement execute method which adds additional data to the context though extension attributes.
* - This data will be present in each resolver.
*/
interface ContextParametersProcessorInterface
{
Expand Down

0 comments on commit 13ea1f8

Please sign in to comment.