vendor/overblog/graphql-bundle/src/Definition/Builder/TypeFactory.php line 24

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace Overblog\GraphQLBundle\Definition\Builder;
  4. use GraphQL\Type\Definition\Type;
  5. use Overblog\GraphQLBundle\Definition\ConfigProcessor;
  6. use Overblog\GraphQLBundle\Definition\GraphQLServices;
  7. final class TypeFactory
  8. {
  9.     private ConfigProcessor $configProcessor;
  10.     private GraphQLServices $graphQLServices;
  11.     public function __construct(ConfigProcessor $configProcessorGraphQLServices $graphQLServices)
  12.     {
  13.         $this->configProcessor $configProcessor;
  14.         $this->graphQLServices $graphQLServices;
  15.     }
  16.     public function create(string $class): Type
  17.     {
  18.         return new $class($this->configProcessor$this->graphQLServices);
  19.     }
  20. }