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
8585If ``autoescape_service `` option is defined, then this option defines the method
8686called to determine the default escaping applied to the template.
8787
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+
8896base_template_class
8997~~~~~~~~~~~~~~~~~~~
9098
@@ -434,3 +442,4 @@ and the non-existing values are replaced by ``null``.
434442
435443.. _`the optimizer extension` : https://twig.symfony.com/doc/3.x/api.html#optimizer-extension
436444.. _`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