File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -1337,7 +1337,7 @@ the new loader and tag it with ``twig.loader``:
13371337 acme.demo_bundle.loader.some_twig_loader:
13381338 class: Acme\DemoBundle\Loader\SomeTwigLoader
13391339 tags:
1340- - { name: twig.loader }
1340+ - { name: twig.loader, priority: 0 }
13411341
13421342 .. code-block:: xml
13431343
@@ -1351,7 +1351,7 @@ the new loader and tag it with ``twig.loader``:
13511351 id=" acme.demo_bundle.loader.some_twig_loader"
13521352 class=" Acme\DemoBundle\Loader\SomeTwigLoader" >
13531353
1354- <tag name=" twig.loader" />
1354+ <tag name=" twig.loader" priority= " 0 " />
13551355 </service>
13561356 </services>
13571357 </container>
@@ -1360,9 +1360,14 @@ the new loader and tag it with ``twig.loader``:
13601360
13611361 $container
13621362 ->register('acme.demo_bundle.loader.some_twig_loader', 'Acme\DemoBundle\Loader\SomeTwigLoader')
1363- ->addTag('twig.loader')
1363+ ->addTag('twig.loader', array('priority' => 0) )
13641364 ;
13651365
1366+ .. note::
1367+
1368+ The ``priority`` value is optional and defaults to ``0``.
1369+ The higher priority loaders are tried first.
1370+
13661371validator.constraint_validator
13671372------------------------------
13681373
You can’t perform that action at this time.
0 commit comments