Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit73c1711

Browse files
committed
minor#6866 Deprecated message with "true" parameter (wazz42)
This PR was submitted for the 3.1 branch but it was merged into the 2.7 branch instead (closes#6866).Discussion----------Deprecated message with "true" parameterWith the "true" parameter you will get this message:Using "true" as the default strategy is deprecated since version 1.21. Use "html" instead.I replaced it with the default value.Commits-------d97eaec Deprecated message with "true" parameter
2 parentsbe92228 +d97eaec commit73c1711

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

‎reference/configuration/twig.rst‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ TwigBundle Configuration ("twig")
6262
6363
<twig:config
6464
auto-reload="%kernel.debug%"
65-
autoescape="true"
65+
autoescape="filename"
6666
base-template-class="Twig_Template"
6767
cache="%kernel.cache_dir%/twig"
6868
charset="%kernel.charset%"
@@ -93,7 +93,7 @@ TwigBundle Configuration ("twig")
9393
'pi' => 3.14,
9494
),
9595
'auto_reload' => '%kernel.debug%',
96-
'autoescape' =>true,
96+
'autoescape' =>'filename',
9797
'base_template_class' => 'Twig_Template',
9898
'cache' => '%kernel.cache_dir%/twig',
9999
'charset' => '%kernel.charset%',
@@ -129,8 +129,7 @@ autoescape
129129

130130
**type**: ``boolean`` or ``string`` **default**: ``'filename'``
131131

132-
If set to ``true``, all template contents are escaped for HTML. If set to
133-
``false``, automatic escaping is disabled (you can still escape each content
132+
If set to ``false``, automatic escaping is disabled (you can still escape each content
134133
individually in the templates).
135134

136135
..caution::

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp