Fix Twig 1.x compatibility

This commit is contained in:
Yonel Ceruto 2019-07-09 11:57:56 -04:00
parent 1872a5af39
commit a9a6eb5c58
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ class ExceptionController
$exception = $this->profiler->loadProfile($token)->getCollector('exception')->getException();
$template = $this->getTemplate();
if (!$this->twig->getLoader()->exists($template)) {
if (!$this->templateExists($template)) {
$handler = new ExceptionHandler($this->debug, $this->twig->getCharset(), $this->fileLinkFormat);
return new Response($handler->getContent($exception), 200, ['Content-Type' => 'text/html']);