File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -222,13 +222,15 @@ The values of the ``paths`` option are defined as ``key: value`` pairs where the
222
222
223
223
.. code-block :: yaml
224
224
225
+ # app/config/config.yml
225
226
twig :
226
227
# ...
227
228
paths :
228
229
' %kernel.root_dir%/../vendor/acme/foo-bar/templates ' : ~
229
230
230
231
.. code-block :: xml
231
232
233
+ <!-- app/config/config.xml -->
232
234
<container xmlns =" http://symfony.com/schema/dic/services"
233
235
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
234
236
xmlns : twig =" http://symfony.com/schema/dic/twig"
@@ -243,6 +245,7 @@ The values of the ``paths`` option are defined as ``key: value`` pairs where the
243
245
244
246
.. code-block :: php
245
247
248
+ // app/config/config.php
246
249
$container->loadFromExtension('twig', array(
247
250
// ...
248
251
'paths' => array(
@@ -262,13 +265,15 @@ for that directory:
262
265
263
266
.. code-block :: yaml
264
267
268
+ # app/config/config.yml
265
269
twig :
266
270
# ...
267
271
paths :
268
272
' %kernel.root_dir%/../vendor/acme/foo-bar/templates ' : ' foo_bar'
269
273
270
274
.. code-block :: xml
271
275
276
+ <!-- app/config/config.xml -->
272
277
<container xmlns =" http://symfony.com/schema/dic/services"
273
278
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
274
279
xmlns : twig =" http://symfony.com/schema/dic/twig"
@@ -283,6 +288,7 @@ for that directory:
283
288
284
289
.. code-block :: php
285
290
291
+ # app/config/config.php
286
292
$container->loadFromExtension('twig', array(
287
293
// ...
288
294
'paths' => array(
You can’t perform that action at this time.
0 commit comments