Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
GraphQl Class Reference
Inheritance diagram for GraphQl:
FrontControllerInterface

Public Member Functions

 __construct (Response $response, SchemaGeneratorInterface $schemaGenerator, SerializerInterface $jsonSerializer, QueryProcessor $queryProcessor, ExceptionFormatter $graphQlError, ContextInterface $resolverContext, HttpRequestProcessor $requestProcessor, QueryFields $queryFields)
 
- Public Member Functions inherited from FrontControllerInterface
 dispatch (RequestInterface $request)
 

Detailed Description

Front controller for web API GraphQL area.

@api

Definition at line 27 of file GraphQl.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( Response  $response,
SchemaGeneratorInterface  $schemaGenerator,
SerializerInterface  $jsonSerializer,
QueryProcessor  $queryProcessor,
ExceptionFormatter  $graphQlError,
ContextInterface  $resolverContext,
HttpRequestProcessor  $requestProcessor,
QueryFields  $queryFields 
)
Parameters
Response$response
SchemaGeneratorInterface$schemaGenerator
SerializerInterface$jsonSerializer
QueryProcessor$queryProcessor
\Magento\Framework\GraphQl\Exception\ExceptionFormatter$graphQlError
\Magento\Framework\GraphQl\Query\Resolver\ContextInterface$resolverContext
HttpRequestProcessor$requestProcessor
QueryFields$queryFields

Definition at line 79 of file GraphQl.php.

88  {
89  $this->response = $response;
90  $this->schemaGenerator = $schemaGenerator;
91  $this->jsonSerializer = $jsonSerializer;
92  $this->queryProcessor = $queryProcessor;
93  $this->graphQlError = $graphQlError;
94  $this->resolverContext = $resolverContext;
95  $this->requestProcessor = $requestProcessor;
96  $this->queryFields = $queryFields;
97  }
$response
Definition: 404.php:11

The documentation for this class was generated from the following file: