ServiceLocatorTagPass

class ServiceLocatorTagPass extends AbstractRecursivePass

Applies the "container.service_locator" tag by wrapping references into ServiceClosureArgument instances.

Methods

process(ContainerBuilder $container)

You can modify the container here before it is dumped to PHP code.

from AbstractRecursivePass
static Reference register(ContainerBuilder $container, array $refMap, string|null $callerId = null)

Details

process(ContainerBuilder $container)

You can modify the container here before it is dumped to PHP code.

Parameters

ContainerBuilder $container

static Reference register(ContainerBuilder $container, array $refMap, string|null $callerId = null)

Parameters

ContainerBuilder $container
array $refMap
string|null $callerId

Return Value

Reference