Documentation

RemoveUnusedDefinitionsPass extends AbstractRecursivePass
in package

Removes unused service definitions from the container.

Tags
author

Johannes M. Schmitt schmittjoh@gmail.com

author

Nicolas Grekas p@tchwork.com

Table of Contents

Properties

$container  : ContainerBuilder
$currentId  : mixed
$connectedIds  : array<string|int, mixed>
$expressionLanguage  : mixed
$inExpression  : bool
$processExpressions  : bool

Methods

process()  : mixed
Processes the ContainerBuilder to remove unused definitions.
enableExpressionProcessing()  : mixed
getConstructor()  : ReflectionFunctionAbstract|null
getReflectionMethod()  : ReflectionFunctionAbstract
inExpression()  : bool
processValue()  : mixed
Processes a value found in a definition tree.
getExpressionLanguage()  : ExpressionLanguage

Properties

Methods

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