소스 검색

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
Fabien Potencier 13 년 전
부모
커밋
b00e91b290
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      src/Symfony/Bundle/FrameworkBundle/Templating/Loader/TemplateLocator.php

+ 1 - 2
src/Symfony/Bundle/FrameworkBundle/Templating/Loader/TemplateLocator.php

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