File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -596,8 +596,9 @@ Tagged Services with Priority
596
596
597
597
The ability to prioritize tagged services was introduced in Symfony 4.4.
598
598
599
- The tagged services can be prioritized using the ``priority `` attribute,
600
- thus providing a way to inject a sorted collection of services:
599
+ The tagged services can be prioritized using the ``priority `` attribute.
600
+ The priority is a positive or negative integer. The higher the number,
601
+ the earlier the tagged service will be located in the collection:
601
602
602
603
.. configuration-block ::
603
604
@@ -655,7 +656,7 @@ service itself::
655
656
}
656
657
}
657
658
658
- If you want to have another method defining the priority
659
+ If you want to have another method defining the priority
659
660
(e.g. ``getPriority() `` rather than ``getDefaultPriority() ``),
660
661
you can define it in the configuration of the collecting service:
661
662
You can’t perform that action at this time.
0 commit comments