Rework macros handling

This commit is contained in:
Fabien Potencier
2024-10-18 12:00:57 +02:00
parent bde4efac5a
commit 1105964873
19 changed files with 326 additions and 157 deletions
+1 -1
View File
@@ -129,7 +129,7 @@ class __TwigTemplate_%x extends Template
EOF
, $twig, true];
$import = new ImportNode(new ConstantExpression('foo.twig', 1), new AssignNameExpression('macro', 1), 2);
$import = new ImportNode(new ConstantExpression('foo.twig', 1), 'macro', 2);
$body = new BodyNode([$import]);
$extends = new ConstantExpression('layout.twig', 1);