We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcfe152 commit 10204ffCopy full SHA for 10204ff
src/Symfony/Bundle/WebProfilerBundle/Profiler/TemplateManager.php
@@ -126,7 +126,7 @@ protected function templateExists($template)
126
}
127
128
try {
129
- if ($loader instanceof SourceContextLoaderInterface) {
+ if ($loader instanceof SourceContextLoaderInterface || method_exists($loader, 'getSourceContext')) {
130
$loader->getSourceContext($template);
131
} else {
132
$loader->getSource($template);
0 commit comments