File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,14 @@ private function getTemplateCode()
93
93
return $ this ->loader ->getSource ($ this ->template ->getTemplateName ());
94
94
}
95
95
96
+ /**
97
+ * The logic implemented in this method is solely developed for the Symfony
98
+ * Demo application and cannot be used as a general purpose solution.
99
+ * Specifically, this logic won't work for templates that use a namespaced path
100
+ * (e.g. @WebProfiler/Collector/time.html.twig) or any loader different from
101
+ * Twig_Loader_Filesystem (e.g. TwigBundle:Exception:exception.txt.twig notation
102
+ * or an anonymous template created by the {% embed %} tag).
103
+ */
96
104
private function getTemplateRelativePath ()
97
105
{
98
106
return 'app/Resources/views/ ' .$ this ->template ->getTemplateName ();
You can’t perform that action at this time.
0 commit comments