Skip to content

Commit

Permalink
Merge pull request jmontoyaa#5 from FredDut/patch-5
Browse files Browse the repository at this point in the history
Update GridManager.php
  • Loading branch information
jmontoyaa authored Aug 12, 2021
2 parents 82402e0 + 56c62e1 commit 138764c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Grid/GridManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,15 @@ public function getGridManagerResponse($param1 = null, $param2 = null, Response
return $parameters;
}

return $this->container->get('templating')->renderResponse($view, $parameters, $response);
$content = $this->container->get('twig')->render($view, $parameters);

if (null === $response) {
$response = new Response();
}

$response->setContent($content);

return $response;
}
}

Expand Down

0 comments on commit 138764c

Please sign in to comment.