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 @@ -1282,7 +1282,7 @@ the common configuration using options when importing the routes.
1282
1282
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
1283
1283
1284
1284
return function (RoutingConfigurator $routes) {
1285
- // use the optional fifth argument of import() to exclude some files
1285
+ // use the optional fourth argument of import() to exclude some files
1286
1286
// or subdirectories when loading annotations
1287
1287
$routes->import('../../src/Controller/', 'annotation')
1288
1288
// this is added to the beginning of all imported route URLs
Original file line number Diff line number Diff line change @@ -592,8 +592,9 @@ application handlers::
592
592
Tagged Services with Priority
593
593
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
594
594
595
- The tagged services can be prioritized using the ``priority `` attribute,
596
- thus providing a way to inject a sorted collection of services:
595
+ The tagged services can be prioritized using the ``priority `` attribute.
596
+ The priority is a positive or negative integer. The higher the number,
597
+ the earlier the tagged service will be located in the collection:
597
598
598
599
.. configuration-block ::
599
600
@@ -651,7 +652,7 @@ service itself::
651
652
}
652
653
}
653
654
654
- If you want to have another method defining the priority
655
+ If you want to have another method defining the priority
655
656
(e.g. ``getPriority() `` rather than ``getDefaultPriority() ``),
656
657
you can define it in the configuration of the collecting service:
657
658
You can’t perform that action at this time.
0 commit comments