Documentation

AutowireRequiredMethodsPass extends AbstractRecursivePass
in package

Looks for definitions with autowiring enabled and registers their corresponding "@required" methods as setters.

Tags
author

Nicolas Grekas p@tchwork.com

Table of Contents

$container  : ContainerBuilder
$currentId  : mixed
$expressionLanguage  : mixed
$inExpression  : mixed
$processExpressions  : mixed
process()  : mixed
You can modify the container here before it is dumped to PHP code.
enableExpressionProcessing()  : mixed
getConstructor()  : ReflectionFunctionAbstract|null
getReflectionMethod()  : ReflectionFunctionAbstract
inExpression()  : bool
processValue()  : mixed
Processes a value found in a definition tree.
getExpressionLanguage()  : ExpressionLanguage
isWither()  : bool

Properties

Methods

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

isWither()

private isWither(ReflectionMethod $reflectionMethod, string $doc) : bool
Parameters
$reflectionMethod : ReflectionMethod
$doc : string
Return values
bool

Search results