AnalyzeServiceReferencesPass
extends AbstractRecursivePass
in package
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.
Tags
Table of Contents
- $container : ContainerBuilder
- $currentId : mixed
- $aliases : mixed
- $byConstructor : mixed
- $byFactory : mixed
- $currentDefinition : mixed
- $definitions : mixed
- $expressionLanguage : mixed
- $graph : mixed
- $hasProxyDumper : mixed
- $inExpression : mixed
- $lazy : mixed
- $onlyConstructorArguments : mixed
- $processExpressions : mixed
- __construct() : mixed
- process() : mixed
- Processes a ContainerBuilder object to populate the service reference graph.
- enableExpressionProcessing() : mixed
- getConstructor() : ReflectionFunctionAbstract|null
- getReflectionMethod() : ReflectionFunctionAbstract
- inExpression() : bool
- processValue() : mixed
- Processes a value found in a definition tree.
- getDefinitionId() : string|null
- getExpressionLanguage() : ExpressionLanguage
Properties
$container
protected
ContainerBuilder
$container
$currentId
protected
mixed
$currentId
$aliases
private
mixed
$aliases
$byConstructor
private
mixed
$byConstructor
$byFactory
private
mixed
$byFactory
$currentDefinition
private
mixed
$currentDefinition
$definitions
private
mixed
$definitions
$expressionLanguage
private
mixed
$expressionLanguage
$graph
private
mixed
$graph
$hasProxyDumper
private
mixed
$hasProxyDumper
$inExpression
private
mixed
$inExpression
= false
$lazy
private
mixed
$lazy
$onlyConstructorArguments
private
mixed
$onlyConstructorArguments
$processExpressions
private
mixed
$processExpressions
= false
Methods
__construct()
public
__construct([bool $onlyConstructorArguments = false ][, bool $hasProxyDumper = true ]) : mixed
Parameters
- $onlyConstructorArguments : bool = false
-
Sets this Service Reference pass to ignore method calls
- $hasProxyDumper : bool = true
Return values
mixed —process()
Processes a ContainerBuilder object to populate the service reference graph.
public
process(ContainerBuilder $container) : mixed
Parameters
- $container : ContainerBuilder
Return values
mixed —enableExpressionProcessing()
protected
enableExpressionProcessing() : mixed
Return values
mixed —getConstructor()
protected
getConstructor(Definition $definition, bool $required) : ReflectionFunctionAbstract|null
Parameters
- $definition : Definition
- $required : bool
Tags
Return values
ReflectionFunctionAbstract|null —getReflectionMethod()
protected
getReflectionMethod(Definition $definition, string $method) : ReflectionFunctionAbstract
Parameters
- $definition : Definition
- $method : string
Tags
Return values
ReflectionFunctionAbstract —inExpression()
protected
inExpression([bool $reset = true ]) : bool
Parameters
- $reset : bool = true
Return values
bool —processValue()
Processes a value found in a definition tree.
protected
processValue(mixed $value[, bool $isRoot = false ]) : mixed
Parameters
- $value : mixed
- $isRoot : bool = false
Return values
mixed —getDefinitionId()
private
getDefinitionId(string $id) : string|null
Parameters
- $id : string
Return values
string|null —getExpressionLanguage()
private
getExpressionLanguage() : ExpressionLanguage