mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-01 13:07:22 +00:00
Document that overriding MacroNode::compile() is not supported anymore
This commit is contained in:
+4
-1
@@ -12,7 +12,10 @@ Classes
|
||||
final in Twig 4.0. Use ``Twig\Markup`` directly instead of extending it.
|
||||
|
||||
* The ``Twig\Node\MacroNode`` class is considered final as of Twig 3.29 and
|
||||
will be final in Twig 4.0.
|
||||
will be final in Twig 4.0. Note that macros are compiled as closures stored
|
||||
in a per-template registry as of Twig 3.29, so overriding
|
||||
``MacroNode::compile()`` based on the previous contract (emitting a
|
||||
``macro_``-prefixed method) is not supported anymore.
|
||||
|
||||
Functions
|
||||
---------
|
||||
|
||||
Reference in New Issue
Block a user