class AnalyzeServiceReferencesPass extends AbstractRecursivePass implements RepeatablePassInterface

Run this pass before passes that need to know more about the relation of your services.

This class will populate the ServiceReferenceGraph with information. You can retrieve the graph in other passes from the compiler.

Properties

protected ContainerBuilder $container from AbstractRecursivePass
protected $currentId from AbstractRecursivePass

Methods

process(ContainerBuilder $container)

Processes a ContainerBuilder object to populate the service reference graph.

mixed
processValue(mixed $value, bool $isRoot = false)

Processes a value found in a definition tree.

getConstructor(Definition $definition, bool $required)

No description

getReflectionMethod(Definition $definition, string $method)

No description

__construct(bool $onlyConstructorArguments = false, bool $hasProxyDumper = true)

No description

setRepeatedPass(RepeatedPass $repeatedPass)

No description

Details

at line 62
process(ContainerBuilder $container)

Processes a ContainerBuilder object to populate the service reference graph.

Parameters

ContainerBuilder $container

at line 78
protected mixed processValue(mixed $value, bool $isRoot = false)

Processes a value found in a definition tree.

Parameters

mixed $value
bool $isRoot

Return Value

mixed The processed value

in AbstractRecursivePass at line 91
protected ReflectionFunctionAbstract|null getConstructor(Definition $definition, bool $required)

Parameters

Definition $definition
bool $required

Return Value

ReflectionFunctionAbstract|null

Exceptions

RuntimeException

in AbstractRecursivePass at line 147
protected ReflectionFunctionAbstract getReflectionMethod(Definition $definition, string $method)

Parameters

Definition $definition
string $method

Return Value

ReflectionFunctionAbstract

Exceptions

RuntimeException

at line 45
__construct(bool $onlyConstructorArguments = false, bool $hasProxyDumper = true)

Parameters

bool $onlyConstructorArguments
bool $hasProxyDumper

at line 54
setRepeatedPass(RepeatedPass $repeatedPass)

Parameters

RepeatedPass $repeatedPass