[FrameworkBundle] Remove unused variable in TemplateLocator

This commit is contained in:
Alexander 2011-12-07 22:59:17 +01:00
parent 237c36a167
commit 6c69592ab2

View File

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