From 001901a8f745cf7cf762abc507001d2020c2313c Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Tue, 21 Aug 2018 10:13:38 +0200 Subject: [PATCH] Fix issue with ViewController --- src/Gist/Controller/ViewController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gist/Controller/ViewController.php b/src/Gist/Controller/ViewController.php index 48c9a75..d3be5bd 100644 --- a/src/Gist/Controller/ViewController.php +++ b/src/Gist/Controller/ViewController.php @@ -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(); }