Skip to content

Commit

Permalink
Caching missed templates on cache warmup
Browse files Browse the repository at this point in the history
  • Loading branch information
yceruto committed Sep 8, 2018
1 parent 40fff43 commit 83a75f4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Bundle/TwigBundle/TemplateIterator.php
Expand Up @@ -57,7 +57,7 @@ public function getIterator()
$this->templates = array_merge(
$this->templates,
$this->findTemplatesInDirectory($bundle->getPath().'/Resources/views', $name),
$this->findTemplatesInDirectory($this->rootDir.'/'.$bundle->getName().'/views', $name)
$this->findTemplatesInDirectory($this->rootDir.'/Resources/'.$bundle->getName().'/views', $name)
);
}

Expand Down
Expand Up @@ -31,6 +31,7 @@ public function testGetIterator()
sort($sorted);
$this->assertEquals(
array(
'@Bar/base.html.twig',
'@Bar/index.html.twig',
'@Foo/index.html.twig',
'layout.html.twig',
Expand Down

0 comments on commit 83a75f4

Please sign in to comment.