You are here

public function Executor::__construct in GraphQL 8.4

Executor constructor.

Parameters

\Drupal\Core\Cache\Context\CacheContextsManager $contextsManager: The cache contexts manager service.

\Drupal\Core\Cache\CacheBackendInterface $cacheBackend: The cache backend for caching query results.

\Symfony\Component\HttpFoundation\RequestStack $requestStack: The request stack.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher: The event dispatcher.

\GraphQL\Executor\Promise\PromiseAdapter $adapter:

\GraphQL\Type\Schema $schema:

\GraphQL\Language\AST\DocumentNode $document:

\Drupal\graphql\GraphQL\Execution\ResolveContext $context:

mixed $root:

mixed $variables:

string $operation:

callable $resolver:

File

src/GraphQL/Execution/Executor.php, line 140

Class

Executor
Executes GraphQL queries with cache lookup.

Namespace

Drupal\graphql\GraphQL\Execution

Code

public function __construct(CacheContextsManager $contextsManager, CacheBackendInterface $cacheBackend, RequestStack $requestStack, EventDispatcherInterface $dispatcher, PromiseAdapter $adapter, Schema $schema, DocumentNode $document, ResolveContext $context, $root, $variables, $operation, callable $resolver) {
  $this->contextsManager = $contextsManager;
  $this->cacheBackend = $cacheBackend;
  $this->requestStack = $requestStack;
  $this->dispatcher = $dispatcher;
  $this->adapter = $adapter;
  $this->document = $document;
  $this->context = $context;
  $this->root = $root;
  $this->variables = $variables;
  $this->schema = $schema;
  $this->operation = $operation;
  $this->resolver = $resolver;
}