Skip to content

Commit 3a307cd

Browse files
committed
Update CHANGELOG and docs
1 parent 80c1574 commit 3a307cd

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGELOG

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# 3.12.0 (2024-XX-XX)
22

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)
35
* Accept colons (`:`) in addition to equals (`=`) to separate argument names and values in named arguments
46
* Add the `html_cva` function (in the HTML extra package)
57
* Add support for named arguments to the `block` and `attribute` functions

src/Environment.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ class Environment
103103
* (default to -1 which means that all optimizations are enabled;
104104
* set it to 0 to disable).
105105
*
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
109109
*/
110110
public function __construct(LoaderInterface $loader, $options = [])
111111
{

0 commit comments

Comments
 (0)