You are here

public static function RequestController::create in GraphQL 8.4

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

@codeCoverageIgnore

Overrides ContainerInjectionInterface::create

File

src/Controller/RequestController.php, line 28

Class

RequestController
The main GraphQL request handler that will forward to the responsible server.

Namespace

Drupal\graphql\Controller

Code

public static function create(ContainerInterface $container) : self {
  return new static($container
    ->getParameter('graphql.config'));
}