소스 검색

[TwigBundle] Fix some typos

Victor Berchet 14 년 전
부모
커밋
f89a5ff3b8
1개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 5 5
      src/Symfony/Bundle/TwigBundle/CacheWarmer/TemplateCacheCacheWarmer.php

+ 5 - 5
src/Symfony/Bundle/TwigBundle/CacheWarmer/TemplateCacheCacheWarmer.php

@@ -59,13 +59,13 @@ class TemplateCacheCacheWarmer extends CacheWarmer
         $twig = $this->container->get('twig');
         $twig = $this->container->get('twig');
 
 
         foreach ($this->kernel->getBundles() as $name => $bundle) {
         foreach ($this->kernel->getBundles() as $name => $bundle) {
-            foreach ($this->findTemplatesIn($bundle->getPath().self::TEMPLATES_PATH_IN_BUNDLE, $name) as $file) {
-                $twig->loadTemplate($file);
+            foreach ($this->findTemplatesIn($bundle->getPath().self::TEMPLATES_PATH_IN_BUNDLE, $name) as $template) {
+                $twig->loadTemplate($template);
             }
             }
         }
         }
 
 
-        foreach ($this->findTemplatesIn($this->rootDir) as $file) {
-            $twig->loadTemplate($file);
+        foreach ($this->findTemplatesIn($this->rootDir) as $template) {
+            $twig->loadTemplate($template);
         }
         }
     }
     }
 
 
@@ -85,7 +85,7 @@ class TemplateCacheCacheWarmer extends CacheWarmer
      * @param string $dir       The folder where to look for templates
      * @param string $dir       The folder where to look for templates
      * @param string $bundle    The name of the bundle (null when out of a bundle)
      * @param string $bundle    The name of the bundle (null when out of a bundle)
      *
      *
-     * @return array An array of template paths
+     * @return array An array of TemplateReference
      */
      */
     protected function findTemplatesIn($dir, $bundle = null)
     protected function findTemplatesIn($dir, $bundle = null)
     {
     {