File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -1562,7 +1562,7 @@ when importing the routes.
1562
1562
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
1563
1563
1564
1564
return function (RoutingConfigurator $routes) {
1565
- // use the optional fifth argument of import() to exclude some files
1565
+ // use the optional fourth argument of import() to exclude some files
1566
1566
// or subdirectories when loading annotations
1567
1567
$routes->import('../../src/Controller/', 'annotation')
1568
1568
// this is added to the beginning of all imported route URLs
Original file line number Diff line number Diff line change @@ -594,8 +594,9 @@ application handlers::
594
594
Tagged Services with Priority
595
595
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
596
596
597
- The tagged services can be prioritized using the ``priority `` attribute,
598
- thus providing a way to inject a sorted collection of services:
597
+ The tagged services can be prioritized using the ``priority `` attribute.
598
+ The priority is a positive or negative integer. The higher the number,
599
+ the earlier the tagged service will be located in the collection:
599
600
600
601
.. configuration-block ::
601
602
@@ -653,7 +654,7 @@ service itself::
653
654
}
654
655
}
655
656
656
- If you want to have another method defining the priority
657
+ If you want to have another method defining the priority
657
658
(e.g. ``getPriority() `` rather than ``getDefaultPriority() ``),
658
659
you can define it in the configuration of the collecting service:
659
660
You can’t perform that action at this time.
0 commit comments