Skip to content

Commit

Permalink
fix Symfony 5.1 deprecation notice
Browse files Browse the repository at this point in the history
  • Loading branch information
mathroc committed Jul 22, 2020
1 parent 3161762 commit d11eed1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Controller/GraphiQLController.php
Expand Up @@ -38,7 +38,7 @@ public function indexAction($schemaName = null)
{
$endpoint = null === $schemaName ? $this->graphQLEndpoint->getDefault() : $this->graphQLEndpoint->getBySchema($schemaName);

return Response::create($this->twig->render(
return new Response($this->twig->render(
$this->viewConfig->getTemplate(),
[
'endpoint' => $endpoint,
Expand Down

0 comments on commit d11eed1

Please sign in to comment.