merged branch asm89/remove-unused-variable-2.0 (PR #2803)
Commits
-------
6c69592
[FrameworkBundle] Remove unused variable in TemplateLocator
Discussion
----------
[FrameworkBundle] Remove unused variable in TemplateLocator
2.0 version of #2799
This commit is contained in:
commit
b00e91b290
@ -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