You are here

public function RequestController::__construct in GraphQL 8.3

Same name and namespace in other branches
  1. 8.4 src/Controller/RequestController.php \Drupal\graphql\Controller\RequestController::__construct()
  2. 8 src/Controller/RequestController.php \Drupal\graphql\Controller\RequestController::__construct()
  3. 8.2 src/Controller/RequestController.php \Drupal\graphql\Controller\RequestController::__construct()

RequestController constructor.

Parameters

\Drupal\graphql\GraphQL\Execution\QueryProcessor $processor: The query processor.

array $parameters: The service configuration parameters.

File

src/Controller/RequestController.php, line 47

Class

RequestController
Handles GraphQL requests.

Namespace

Drupal\graphql\Controller

Code

public function __construct(QueryProcessor $processor, array $parameters) {
  $this->processor = $processor;
  $this->parameters = $parameters;
}