...
|
...
|
@@ -167,7 +167,7 @@ Built-in Loaders
|
167
|
167
|
Here is a list of the built-in loaders Twig provides:
|
168
|
168
|
|
169
|
169
|
``\Twig\Loader\FilesystemLoader``
|
170
|
|
-..........................
|
|
170
|
+.................................
|
171
|
171
|
|
172
|
172
|
.. versionadded:: 1.10
|
173
|
173
|
The ``prependPath()`` and support for namespaces were added in Twig 1.10.
|
...
|
...
|
@@ -222,7 +222,7 @@ the directory might be different from the one used on production servers)::
|
222
|
222
|
for relative paths.
|
223
|
223
|
|
224
|
224
|
``\Twig\Loader\ArrayLoader``
|
225
|
|
-.....................
|
|
225
|
+............................
|
226
|
226
|
|
227
|
227
|
``\Twig\Loader\ArrayLoader`` loads a template from a PHP array. It's passed an array
|
228
|
228
|
of strings bound to template names::
|
...
|
...
|
@@ -246,7 +246,7 @@ projects where storing all templates in a single PHP file might make sense.
|
246
|
246
|
of clearing the old cache file by yourself.
|
247
|
247
|
|
248
|
248
|
``\Twig\Loader\ChainLoader``
|
249
|
|
-.....................
|
|
249
|
+............................
|
250
|
250
|
|
251
|
251
|
``\Twig\Loader\ChainLoader`` delegates the loading of templates to other loaders::
|
252
|
252
|
|