RouteProcessorManager
class RouteProcessorManager implements OutboundRouteProcessorInterface (View source)
Route processor manager.
Holds an array of route processor objects and uses them to sequentially process an outbound route, in order of processor priority.
Properties
| protected array | $outboundProcessors | Holds the array of outbound processors to cycle through. |
|
| protected array | $sortedOutbound | Holds the array of outbound processors, sorted by priority. |
Methods
Adds an outbound processor object to the $outboundProcessors property.
Processes the outbound route.
Returns the sorted array of outbound processors.
Sorts the processors according to priority.
Details
addOutbound(OutboundRouteProcessorInterface $processor, int $priority = 0)
Adds an outbound processor object to the $outboundProcessors property.
The
processOutbound(string $route_name, Route $route, array $parameters, BubbleableMetadata $bubbleable_metadata = NULL)
Processes the outbound route.
protected array
getOutbound()
Returns the sorted array of outbound processors.
protected
sortProcessors()
Sorts the processors according to priority.