Skip to content

Commit ba31465

Browse files
committed
Adapting code to new parameter middleware
1 parent 3de2d6b commit ba31465

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

DependencyInjection/GraphqliteCompilerPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ public function process(ContainerBuilder $container)
243243
$this->mapAdderToTag('graphql.queryprovider', 'addQueryProvider', $container, $schemaFactory);
244244
$this->mapAdderToTag('graphql.queryprovider_factory', 'addQueryProviderFactory', $container, $schemaFactory);
245245
$this->mapAdderToTag('graphql.root_type_mapper', 'addRootTypeMapper', $container, $schemaFactory);
246-
$this->mapAdderToTag('graphql.parameter_mapper', 'addParameterMapper', $container, $schemaFactory);
246+
$this->mapAdderToTag('graphql.parameter_middleware', 'addParameterMapper', $container, $schemaFactory);
247247
$this->mapAdderToTag('graphql.field_middleware', 'addFieldMiddleware', $container, $schemaFactory);
248248
$this->mapAdderToTag('graphql.type_mapper', 'addTypeMapper', $container, $schemaFactory);
249249
$this->mapAdderToTag('graphql.type_mapper_factory', 'addTypeMapperFactory', $container, $schemaFactory);

Resources/config/container/graphqlite.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@
6666
<service id="TheCodingMachine\Graphqlite\Bundle\Controller\GraphqliteController" public="true" />
6767

6868
<service id="TheCodingMachine\Graphqlite\Bundle\Mappers\RequestParameterMapper">
69-
<tag name="graphql.parameter_mapper"/>
69+
<tag name="graphql.parameter_middleware"/>
7070
</service>
7171

7272
<service id="TheCodingMachine\Graphqlite\Bundle\Mappers\RequestParameterMapper">
73-
<tag name="graphql.parameter_mapper"/>
73+
<tag name="graphql.parameter_middleware"/>
7474
</service>
7575

7676
<service id="TheCodingMachine\Graphqlite\Bundle\Controller\GraphQL\LoginController" public="true">

0 commit comments

Comments
 (0)