diff --git a/src/Resolver/TwigResolver.php b/src/Resolver/TwigResolver.php index 7b1f7cd..c1bc982 100755 --- a/src/Resolver/TwigResolver.php +++ b/src/Resolver/TwigResolver.php @@ -29,10 +29,11 @@ public function __construct(Twig_Environment $environment = null) * @param string $name * @param null|Renderer $renderer * - * @return bool + * @return string */ public function resolve($name, Renderer $renderer = null) { - return $this->environment->loadTemplate($name); + return $this->environment + ->resolveTemplate($name); } }