You are here

public function RequestController::__construct in GraphQL 8

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

Constructs a RequestController object.

Parameters

\Fubhy\GraphQL\GraphQL $graphql: The GraphQL service.

\Drupal\graphql\SchemaLoader $schema_loader: The schema loader service.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager service.

File

src/Controller/RequestController.php, line 53

Class

RequestController
Handles GraphQL requests.

Namespace

Drupal\graphql\Controller

Code

public function __construct(GraphQL $graphql, SchemaLoader $schema_loader, LanguageManagerInterface $language_manager) {
  $this->graphql = $graphql;
  $this->schemaLoader = $schema_loader;
  $this->languageManager = $language_manager;
}