Skip to content

Commit 25f509a

Browse files
authored
Fixed the selection of correct errorHandlingMode
1 parent 16400cc commit 25f509a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GraphQLController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function options() : Response
5454
#[Route(name: 'graphql', methods: ['GET', 'POST'])]
5555
public function graphql(Request $request) : JsonResponse
5656
{
57-
$errorHandling = $request->server->get('app.debug') === true
57+
$errorHandling = $this->getParameter('kernel.debug') === true
5858
? ErrorHandlingMode::OUTPUTABLE
5959
: ErrorHandlingMode::ALL;
6060
$graphpinator = new Graphpinator($this->schema, $errorHandling, $this->getEnabledModules($request), $this->logger);

0 commit comments

Comments
 (0)