[FrameworkBundle] Remove unused variable in TemplateLocator
This commit is contained in:
parent
237c36a167
commit
6c69592ab2
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user