You are here

public function QueryRoutes::__construct in GraphQL 8.3

QueryRoutes constructor.

Parameters

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

\Drupal\Core\Authentication\AuthenticationCollectorInterface $authenticationCollector: The authentication collector.

File

src/Routing/QueryRoutes.php, line 38

Class

QueryRoutes
Registers graphql query routes for all schemas.

Namespace

Drupal\graphql\Routing

Code

public function __construct(SchemaPluginManager $schemaManager, AuthenticationCollectorInterface $authenticationCollector) {
  $this->schemaManager = $schemaManager;
  $this->authenticationCollector = $authenticationCollector;
}