Skip to content

Commit 2f4ac5e

Browse files
committed
bumped min version of Twig to 1.11.0
1 parent 81fc922 commit 2f4ac5e

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"require": {
1919
"php": ">=5.3.3",
2020
"doctrine/common": ">2.2,<2.4-dev",
21-
"twig/twig": ">=1.9.1,<2.0-dev"
21+
"twig/twig": ">=1.11.0,<2.0-dev"
2222
},
2323
"replace": {
2424
"symfony/browser-kit": "self.version",

src/Symfony/Bundle/WebProfilerBundle/Profiler/TemplateManager.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,10 @@ protected function getNames(Profile $profile)
107107
$template = substr($template, 0, -10);
108108
}
109109

110-
// FIXME when Twig is able to check for template existence
111-
/*
112-
if (!$this->twig->exists($template.'.html.twig')) {
110+
if (!$this->twig->getLoader()->exists($template.'.html.twig')) {
113111
throw new \UnexpectedValueException(sprintf('The profiler template "%s.html.twig" for data collector "%s" does not exist.', $template, $name));
114112
}
115-
*/
113+
116114
$templates[$name] = $template.'.html.twig';
117115
}
118116

0 commit comments

Comments
 (0)