You are here

public function RouteProvider::__construct in GraphQL 8.4

RouteProvider constructor.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager service.

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

File

src/RouteProvider.php, line 36

Class

RouteProvider
Provides Symfony routing information for each defined GraphQL server.

Namespace

Drupal\graphql

Code

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