Documentation

RoutingResolverPass
in package
implements CompilerPassInterface Uses PriorityTaggedServiceTrait

Adds tagged routing.loader services to routing.resolver service.

Tags
author

Fabien Potencier fabien@symfony.com

Interfaces, Classes and Traits

CompilerPassInterface
Interface that must be implemented by compilation passes.

Table of Contents

$loaderTag  : mixed
$resolverServiceId  : mixed
__construct()  : mixed
process()  : mixed
You can modify the container here before it is dumped to PHP code.
findAndSortTaggedServices()  : array<string|int, Reference>
Finds all services with the given tag name and order them by their priority.

Properties

Methods

__construct()

public __construct([string $resolverServiceId = 'routing.resolver' ][, string $loaderTag = 'routing.loader' ]) : mixed
Parameters
$resolverServiceId : string = 'routing.resolver'
$loaderTag : string = 'routing.loader'
Return values
mixed

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
Tags
see
https://bugs.php.net/53710
see
https://bugs.php.net/60926
Return values
array<string|int, Reference>

Search results