InlineServiceDefinitionsPass
extends AbstractRecursivePass
in package
Inline service definitions where this is possible.
Tags
Table of Contents
- $container : ContainerBuilder
- $currentId : mixed
- $analyzingPass : mixed
- $cloningIds : mixed
- $connectedIds : mixed
- $expressionLanguage : mixed
- $graph : mixed
- $inExpression : mixed
- $inlinedIds : mixed
- $notInlinableIds : mixed
- $notInlinedIds : mixed
- $processExpressions : mixed
- __construct() : 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
- isInlineableDefinition() : bool
- Checks if the definition is inlineable.
Properties
$container
protected
ContainerBuilder
$container
$currentId
protected
mixed
$currentId
$analyzingPass
private
mixed
$analyzingPass
$cloningIds
private
mixed
$cloningIds
= []
$connectedIds
private
mixed
$connectedIds
= []
$expressionLanguage
private
mixed
$expressionLanguage
$graph
private
mixed
$graph
$inExpression
private
mixed
$inExpression
= false
$inlinedIds
private
mixed
$inlinedIds
= []
$notInlinableIds
private
mixed
$notInlinableIds
= []
$notInlinedIds
private
mixed
$notInlinedIds
= []
$processExpressions
private
mixed
$processExpressions
= false
Methods
__construct()
public
__construct([AnalyzeServiceReferencesPass|null $analyzingPass = null ]) : mixed
Parameters
- $analyzingPass : AnalyzeServiceReferencesPass|null = null
Return values
mixed —process()
You can modify the container here before it is dumped to PHP code.
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 —getExpressionLanguage()
private
getExpressionLanguage() : ExpressionLanguage
Return values
ExpressionLanguage —isInlineableDefinition()
Checks if the definition is inlineable.
private
isInlineableDefinition(string $id, Definition $definition) : bool
Parameters
- $id : string
- $definition : Definition