PriorityTaggedServiceTrait
Trait that allows a generic method to find and sort service by priority option in the tag.
Tags
Table of Contents
- findAndSortTaggedServices() : array<string|int, Reference>
- Finds all services with the given tag name and order them by their priority.
Methods
findAndSortTaggedServices()
Finds all services with the given tag name and order them by their priority.
private
findAndSortTaggedServices(string|TaggedIteratorArgument $tagName, ContainerBuilder $container) : array<string|int, Reference>
The order of additions must be respected for services having the same priority, and knowing that the \SplPriorityQueue class does not respect the FIFO method, we should not use that class.
Parameters
- $tagName : string|TaggedIteratorArgument
- $container : ContainerBuilder