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(); }