File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,14 @@ autoescape_service_method
85
85
If ``autoescape_service `` option is defined, then this option defines the method
86
86
called to determine the default escaping applied to the template.
87
87
88
+ If the service defined in ``autoescape_service `` in invocable (i.e. it defines
89
+ the `__invoke() PHP magic method `_) you can omit this option.
90
+
91
+ .. versionadded :: 6.4
92
+
93
+ The feature to use invocable services to omit this option was introduced in
94
+ Symfony 6.4.
95
+
88
96
base_template_class
89
97
~~~~~~~~~~~~~~~~~~~
90
98
@@ -434,3 +442,4 @@ and the non-existing values are replaced by ``null``.
434
442
435
443
.. _`the optimizer extension` : https://twig.symfony.com/doc/3.x/api.html#optimizer-extension
436
444
.. _`XSS attacks` : https://en.wikipedia.org/wiki/Cross-site_scripting
445
+ .. _`__invoke() PHP magic method` : https://www.php.net/manual/en/language.oop5.magic.php#object.invoke
You can’t perform that action at this time.
0 commit comments