6 declare(strict_types=1);
24 private $outputFactory;
51 $this->outputFactory = $outputFactory;
53 $this->typeFactory = $typeFactory;
65 if (!isset($this->outputTypes[$typeName])) {
66 $configElement = $this->config->getConfigElement($typeName);
67 $this->outputTypes[$typeName] = $this->outputFactory->create($configElement);
70 new Phrase(
"Type '{$typeName}' was requested but is not declared in the GraphQL schema.")
75 return $this->outputTypes[$typeName];
__construct(OutputFactory $outputFactory, TypeFactory $typeFactory, ConfigInterface $config)