|
@@ -22,7 +22,6 @@ use Symfony\Component\Templating\TemplateReferenceInterface;
|
|
|
class TemplateLocator implements FileLocatorInterface
|
|
|
{
|
|
|
protected $locator;
|
|
|
- protected $path;
|
|
|
protected $cache;
|
|
|
|
|
|
/**
|
|
@@ -67,7 +66,7 @@ class TemplateLocator implements FileLocatorInterface
|
|
|
try {
|
|
|
return $this->cache[$key] = $this->locator->locate($template->getPath(), $currentPath);
|
|
|
} catch (\InvalidArgumentException $e) {
|
|
|
- throw new \InvalidArgumentException(sprintf('Unable to find template "%s" in "%s".', $template, $this->path), 0, $e);
|
|
|
+ throw new \InvalidArgumentException(sprintf('Unable to find template "%s" in "%s".', $template, $currentPath), 0, $e);
|
|
|
}
|
|
|
}
|
|
|
}
|