Fix issue with ViewController

This commit is contained in:
Simon Vieille 2018-08-21 10:13:38 +02:00
parent 6e848f0982
commit 001901a8f7
No known key found for this signature in database
GPG Key ID: 919533E2B946EA10
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ class ViewController extends Controller
$viewOptions = $this->getViewOptions($request, $gist, $commit);
if (is_array($viewOptions)) {
return $app['twig']->createResponse('View/embed.html.twig', $viewOptions);
return $this->createResponse('View/embed.html.twig', $viewOptions);
} else {
return $this->notFoundResponse();
}