Documentation

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
author

Johannes M. Schmitt schmittjoh@gmail.com

author

Nicolas Grekas p@tchwork.com

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

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

enableExpressionProcessing()

protected enableExpressionProcessing() : mixed
Return values
mixed

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

Search results