File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -103,8 +103,6 @@ TwigBundle Configuration ("twig")
103103 Configuration
104104-------------
105105
106- .. _config-twig-exception-controller :
107-
108106auto_reload
109107~~~~~~~~~~~
110108
@@ -155,15 +153,17 @@ regular PHP code. Compilation is a costly process, so the result is cached in
155153the directory defined by this configuration option.
156154
157155Set 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
160160charset
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
168168debug
169169~~~~~
@@ -173,6 +173,8 @@ debug
173173If ``true ``, the compiled templates include a ``__toString() `` method that can
174174be used to display their nodes.
175175
176+ .. _config-twig-exception-controller :
177+
176178exception_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
You can’t perform that action at this time.
0 commit comments