Skip to content

Commit 3b1b16d

Browse files
javiereguiluzweaverryan
authored andcommitted
Fixes and rewords
1 parent 37ef9bb commit 3b1b16d

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

reference/configuration/twig.rst

+8-6
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,6 @@ TwigBundle Configuration ("twig")
103103
Configuration
104104
-------------
105105

106-
.. _config-twig-exception-controller:
107-
108106
auto_reload
109107
~~~~~~~~~~~
110108

@@ -155,15 +153,17 @@ regular PHP code. Compilation is a costly process, so the result is cached in
155153
the directory defined by this configuration option.
156154

157155
Set this option to ``null`` to disable Twig template compilation. However, this
158-
is not recommended (even for the ``dev`` environment).
156+
is not recommended; not even in the ``dev`` environment, because the
157+
``auto_reload`` option ensures that cached templates which have changed get
158+
compiled again.
159159

160160
charset
161161
~~~~~~~
162162

163163
**type**: ``string`` **default**: ``'%kernel.charset%'``
164164

165-
The charset used by the template files. In Symfony Standard edition this defaults
166-
to ``UTF-8`` charset.
165+
The charset used by the template files. In the Symfony Standard edition this
166+
defaults to the ``UTF-8`` charset.
167167

168168
debug
169169
~~~~~
@@ -173,6 +173,8 @@ debug
173173
If ``true``, the compiled templates include a ``__toString()`` method that can
174174
be used to display their nodes.
175175

176+
.. _config-twig-exception-controller:
177+
176178
exception_controller
177179
~~~~~~~~~~~~~~~~~~~~
178180

@@ -275,7 +277,7 @@ for that directory:
275277
276278
<twig:config>
277279
<!-- ... -->
278-
<twig:path namspace="foo_bar">%kernel.root_dir%/../vendor/acme/foo-bar/templates</twig:path>
280+
<twig:path namespace="foo_bar">%kernel.root_dir%/../vendor/acme/foo-bar/templates</twig:path>
279281
</twig:config>
280282
</container>
281283

0 commit comments

Comments
 (0)