mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-16 12:26:30 +00:00
-
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
# 3.10.0 (2024-XX-XX)
|
# 3.10.0 (2024-XX-XX)
|
||||||
|
|
||||||
* Extract the escaping logic from the `EscapingExtension` class to a new `EscapingRuntime` class.
|
* Extract the escaping logic from the `EscapingExtension` class to a new
|
||||||
|
`EscapingRuntime` class.
|
||||||
|
|
||||||
The following methods from ``Twig\\Extension\\EscaperExtension`` are
|
The following methods from ``Twig\\Extension\\EscaperExtension`` are
|
||||||
deprecated: ``setEscaper()``, ``getEscapers()``, ``setDefaultStrategy()``,
|
deprecated: ``setEscaper()``, ``getEscapers()``, ``setDefaultStrategy()``,
|
||||||
|
|||||||
+1
-1
@@ -18,7 +18,7 @@ Extensions
|
|||||||
3.9.0, and will be removed in Twig 4.0. They have been replaced by internal
|
3.9.0, and will be removed in Twig 4.0. They have been replaced by internal
|
||||||
methods on their respective extension classes.
|
methods on their respective extension classes.
|
||||||
|
|
||||||
If you were using the ``twig_escape_filter()`` function is your code, use
|
If you were using the ``twig_escape_filter()`` function in your code, use
|
||||||
``$env->getRuntime(EscaperRuntime::class)->escape()`` instead.
|
``$env->getRuntime(EscaperRuntime::class)->escape()`` instead.
|
||||||
|
|
||||||
* The following methods from ``Twig\Extension\EscaperExtension`` are
|
* The following methods from ``Twig\Extension\EscaperExtension`` are
|
||||||
|
|||||||
Reference in New Issue
Block a user