Skip to content

Commit

Permalink
Deprecated message with "true" parameter
Browse files Browse the repository at this point in the history
With 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.
  • Loading branch information
wazz42 authored and wouterj committed Aug 11, 2016
1 parent be92228 commit d97eaec
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions reference/configuration/twig.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ TwigBundle Configuration ("twig")
<twig:config
auto-reload="%kernel.debug%"
autoescape="true"
autoescape="filename"
base-template-class="Twig_Template"
cache="%kernel.cache_dir%/twig"
charset="%kernel.charset%"
Expand Down Expand Up @@ -93,7 +93,7 @@ TwigBundle Configuration ("twig")
'pi' => 3.14,
),
'auto_reload' => '%kernel.debug%',
'autoescape' => true,
'autoescape' => 'filename',
'base_template_class' => 'Twig_Template',
'cache' => '%kernel.cache_dir%/twig',
'charset' => '%kernel.charset%',
Expand Down Expand Up @@ -129,8 +129,7 @@ autoescape

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

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

.. caution::
Expand Down

0 comments on commit d97eaec

Please sign in to comment.