feature #2959 Remove the "base_template_class" option on Twig\Environment (fabpot)

This PR was merged into the 3.x branch.

Discussion
----------

Remove the "base_template_class" option on Twig\Environment

Commits
-------

86eb15de removed the "base_template_class" option on Twig\Environment
This commit is contained in:
Fabien Potencier
2019-04-23 18:25:58 +02:00
4 changed files with 5 additions and 41 deletions
+1 -1
View File
@@ -157,7 +157,7 @@ final 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")