[TwigBundle] fixed error messages when an error occurs during template compilation
This commit is contained in:
parent
2dfac2a881
commit
c68b326665
@ -89,7 +89,7 @@ class TwigEngine implements EngineInterface
|
||||
*/
|
||||
public function load($name)
|
||||
{
|
||||
return $this->environment->loadTemplate($this->parser->parse($name));
|
||||
return $this->environment->loadTemplate($this->parser->parse($name), is_array($name) ? json_encode($name) : $name);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user