You are here

public function SchemaLoader::__construct in GraphQL 8.2

Same name and namespace in other branches
  1. 8 src/SchemaLoader.php \Drupal\graphql\SchemaLoader::__construct()

Constructs a SchemaLoader object.

Parameters

\Drupal\graphql\SchemaProviderInterface $schema_provider: The schema provider service.

\Drupal\Core\Cache\CacheBackendInterface $schema_cache: The schema cache backend.

File

src/SchemaLoader.php, line 37

Class

SchemaLoader
Loads and caches a generated GraphQL schema.

Namespace

Drupal\graphql

Code

public function __construct(SchemaProviderInterface $schema_provider, CacheBackendInterface $schema_cache) {
  $this->schemaProvider = $schema_provider;
  $this->schemaCache = $schema_cache;
}