mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-20 14:36:57 +00:00
optimized parent template creation when the template does not use dynamic inheritance
This commit is contained in:
@@ -107,7 +107,7 @@ class __TwigTemplate_be925a7b06dda0dfdbd18a1509f7eb34 extends Twig_Template
|
||||
protected function doDisplay(array \$context, array \$blocks = array())
|
||||
{
|
||||
\$context["macro"] = \$this->env->loadTemplate("foo.twig");
|
||||
\$this->getParent(\$context)->display(\$context, array_merge(\$this->blocks, \$blocks));
|
||||
\$this->parent->display(\$context, array_merge(\$this->blocks, \$blocks));
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
|
||||
@@ -118,7 +118,7 @@ class __TwigTemplate_be925a7b06dda0dfdbd18a1509f7eb34 extends Twig_Template
|
||||
protected function doDisplay(array \$context, array \$blocks = array())
|
||||
{
|
||||
\$this->checkSecurity();
|
||||
\$this->getParent(\$context)->display(\$context, array_merge(\$this->blocks, \$blocks));
|
||||
\$this->parent->display(\$context, array_merge(\$this->blocks, \$blocks));
|
||||
}
|
||||
|
||||
protected function checkSecurity() {
|
||||
|
||||
Reference in New Issue
Block a user