Skip to content

Commit

Permalink
Merge 0af5f88 into d24612e
Browse files Browse the repository at this point in the history
  • Loading branch information
moufmouf committed Nov 29, 2019
2 parents d24612e + 0af5f88 commit 8479084
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DependencyInjection/GraphqliteCompilerPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public function process(ContainerBuilder $container)
// Register graphql.queryprovider
$this->mapAdderToTag('graphql.queryprovider', 'addQueryProvider', $container, $schemaFactory);
$this->mapAdderToTag('graphql.queryprovider_factory', 'addQueryProviderFactory', $container, $schemaFactory);
$this->mapAdderToTag('graphql.root_type_mapper', 'addRootTypeMapper', $container, $schemaFactory);
$this->mapAdderToTag('graphql.root_type_mapper_factory', 'addRootTypeMapperFactory', $container, $schemaFactory);
$this->mapAdderToTag('graphql.parameter_middleware', 'addParameterMiddleware', $container, $schemaFactory);
$this->mapAdderToTag('graphql.field_middleware', 'addFieldMiddleware', $container, $schemaFactory);
$this->mapAdderToTag('graphql.type_mapper', 'addTypeMapper', $container, $schemaFactory);
Expand Down
3 changes: 3 additions & 0 deletions DependencyInjection/GraphqliteExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
namespace TheCodingMachine\Graphqlite\Bundle\DependencyInjection;


use TheCodingMachine\GraphQLite\Mappers\Root\RootTypeMapperFactoryInterface;
use function array_map;
use GraphQL\Error\Debug;
use GraphQL\Server\ServerConfig;
Expand Down Expand Up @@ -75,6 +76,8 @@ public function load(array $configs, ContainerBuilder $container)

$container->registerForAutoconfiguration(ObjectType::class)
->addTag('graphql.output_type');
$container->registerForAutoconfiguration(RootTypeMapperFactoryInterface::class)
->addTag('graphql.root_type_mapper_factory');
}

private function getNamespaceDir(string $namespace): string
Expand Down

0 comments on commit 8479084

Please sign in to comment.