Template runtime and block composition

This commit is contained in:
Fabien Potencier
2026-09-03 21:18:47 +02:00
parent 7b19e1561b
commit 49f814ea26
12 changed files with 1013 additions and 7 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ class BlockNode extends Node
->write(" */\n")
->write(\sprintf("public function block_%s(array \$context, array \$blocks = []): iterable\n", $this->getAttribute('name')), "{\n")
->indent()
->write("\$macros = \$this->macros;\n")
->write("\$macros = null === \$this->macroImportSource ? \$this->macros : \$this->rebindMacroImports(\$this->macroImportSource->macros);\n")
;
$compiler