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

Properties

$container  : ContainerBuilder
$currentId  : mixed
$aliases  : array<string|int, mixed>
$byConstructor  : bool
$byFactory  : bool
$currentDefinition  : mixed
$definitions  : array<string|int, mixed>
$expressionLanguage  : mixed
$graph  : mixed
$hasProxyDumper  : bool
$inExpression  : bool
$lazy  : bool
$onlyConstructorArguments  : bool
$processExpressions  : bool

Methods

__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

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

        
On this page

Search results