Skip to content

Commit c96e89b

Browse files
authored
Merge pull request #266 from vbelorus/graphcontroller-constructor-fix
use ParserInterface in GraphController constructor instead of parser classes
2 parents 2b5fa12 + 90f7b15 commit c96e89b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Controller/GraphController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ class GraphController
3535
private $graphQLBatchingMethod;
3636

3737
public function __construct(
38-
GraphQLRequest\BatchParser $batchParser,
38+
GraphQLRequest\ParserInterface $batchParser,
3939
GraphQLRequest\Executor $requestExecutor,
40-
GraphQLRequest\Parser $requestParser,
40+
GraphQLRequest\ParserInterface $requestParser,
4141
$shouldHandleCORS,
4242
$graphQLBatchingMethod
4343
) {

0 commit comments

Comments
 (0)