removed the "base_template_class" option on Twig\Environment

This commit is contained in:
Fabien Potencier
2019-04-23 16:51:23 +02:00
parent 8613aad80c
commit 86eb15dede
4 changed files with 5 additions and 41 deletions
+1 -1
View File
@@ -163,7 +163,7 @@ class ModuleNode extends Node
// if the template name contains */, add a blank to avoid a PHP parse error
->write('/* '.str_replace('*/', '* /', $this->getSourceContext()->getName())." */\n")
->write('class '.$compiler->getEnvironment()->getTemplateClass($this->getSourceContext()->getName(), $this->getAttribute('index')))
->raw(sprintf(" extends %s\n", $compiler->getEnvironment()->getBaseTemplateClass(false)))
->raw(" extends Template\n")
->write("{\n")
->indent()
->write("private \$source;\n\n")