public function RequestController::__construct in GraphQL 8
Same name and namespace in other branches
- 8.4 src/Controller/RequestController.php \Drupal\graphql\Controller\RequestController::__construct()
- 8.2 src/Controller/RequestController.php \Drupal\graphql\Controller\RequestController::__construct()
- 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\ControllerCode
public function __construct(GraphQL $graphql, SchemaLoader $schema_loader, LanguageManagerInterface $language_manager) {
$this->graphql = $graphql;
$this->schemaLoader = $schema_loader;
$this->languageManager = $language_manager;
}