You are here

public function ExplorerController::__construct in GraphQL 8.4

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

ExplorerController constructor.

@codeCoverageIgnore

Parameters

\Drupal\Core\Routing\UrlGeneratorInterface $urlGenerator: The url generator service.

\Drupal\graphql\GraphQL\Utility\Introspection $introspection: The introspection service.

\Drupal\graphql\Plugin\SchemaPluginManager $pluginManager: The schema plugin manager.

File

src/Controller/ExplorerController.php, line 68

Class

ExplorerController
Controller for the GraphiQL query builder IDE.

Namespace

Drupal\graphql\Controller

Code

public function __construct(UrlGeneratorInterface $urlGenerator, Introspection $introspection, SchemaPluginManager $pluginManager) {
  $this->urlGenerator = $urlGenerator;
  $this->introspection = $introspection;
  $this->pluginManager = $pluginManager;
}