File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
# 3.12.0 (2024-XX-XX)
2
2
3
+ * Fix performance regression when `use_yield` is `false` (which is the default)
4
+ * Improve compatibility when `use_yield` is `false` (as extensions still using `echo` will work as is)
3
5
* Accept colons (`:`) in addition to equals (`=`) to separate argument names and values in named arguments
4
6
* Add the `html_cva` function (in the HTML extra package)
5
7
* Add support for named arguments to the `block` and `attribute` functions
Original file line number Diff line number Diff line change @@ -103,9 +103,9 @@ class Environment
103
103
* (default to -1 which means that all optimizations are enabled;
104
104
* set it to 0 to disable).
105
105
*
106
- * * use_yield: Enable templates to exclusively use "yield" instead of "echo"
107
- * (default to "false", but switch it to "true" when possible
108
- * as this will be the only supported mode in Twig 4.0)
106
+ * * use_yield: true: forces templates to exclusively use "yield" instead of "echo" (all extensions must be yield ready)
107
+ * false (default): allows templates to use a mix of "yield" and "echo" calls to allow for a progressive migration
108
+ * Switch to "true" when possible as this will be the only supported mode in Twig 4.0
109
109
*/
110
110
public function __construct (LoaderInterface $ loader , $ options = [])
111
111
{
You can’t perform that action at this time.
0 commit comments