Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e53c98a

Browse files
committed
Caching missed templates on cache warmup
1 parent 992a174 commit e53c98a

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

src/Symfony/Bundle/TwigBundle/TemplateIterator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function getIterator()
5757
$this->templates = array_merge(
5858
$this->templates,
5959
$this->findTemplatesInDirectory($bundle->getPath().'/Resources/views', $name),
60-
$this->findTemplatesInDirectory($this->rootDir.'/'.$bundle->getName().'/views', $name)
60+
$this->findTemplatesInDirectory($this->rootDir.'/Resources/'.$bundle->getName().'/views', $name)
6161
);
6262
}
6363

src/Symfony/Bundle/TwigBundle/Tests/Fixtures/templates/Resources/BarBundle/views/base.html.twig

Whitespace-only changes.

src/Symfony/Bundle/TwigBundle/Tests/TemplateIteratorTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public function testGetIterator()
3131
sort($sorted);
3232
$this->assertEquals(
3333
array(
34+
'@Bar/base.html.twig',
3435
'@Bar/index.html.twig',
3536
'@Foo/index.html.twig',
3637
'layout.html.twig',

0 commit comments

Comments
 (0)