InlineServiceDefinitionsPass
extends AbstractRecursivePass
in package
Inline service definitions where this is possible.
Tags
Table of Contents
Properties
- $container : ContainerBuilder
- $currentId : mixed
- $analyzingPass : mixed
- $cloningIds : array<string|int, mixed>
- $connectedIds : array<string|int, mixed>
- $expressionLanguage : mixed
- $graph : mixed
- $inExpression : bool
- $inlinedIds : array<string|int, mixed>
- $notInlinableIds : array<string|int, mixed>
- $notInlinedIds : array<string|int, mixed>
- $processExpressions : bool
Methods
- __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
array<string|int, mixed>
$cloningIds
= []
$connectedIds
private
array<string|int, mixed>
$connectedIds
= []
$expressionLanguage
private
mixed
$expressionLanguage
$graph
private
mixed
$graph
= null
$inExpression
private
bool
$inExpression
= false
$inlinedIds
private
array<string|int, mixed>
$inlinedIds
= []
$notInlinableIds
private
array<string|int, mixed>
$notInlinableIds
= []
$notInlinedIds
private
array<string|int, mixed>
$notInlinedIds
= []
$processExpressions
private
bool
$processExpressions
= false
Methods
__construct()
public
__construct([AnalyzeServiceReferencesPass $analyzingPass = null ]) : mixed
Parameters
- $analyzingPass : AnalyzeServiceReferencesPass = null
process()
You can modify the container here before it is dumped to PHP code.
public
process(ContainerBuilder $container) : mixed
Parameters
- $container : ContainerBuilder
enableExpressionProcessing()
protected
enableExpressionProcessing() : mixed
getConstructor()
protected
getConstructor(Definition $definition, bool $required) : ReflectionFunctionAbstract|null
Parameters
- $definition : Definition
- $required : bool
Tags
Return values
ReflectionFunctionAbstract|nullgetReflectionMethod()
protected
getReflectionMethod(Definition $definition, string $method) : ReflectionFunctionAbstract
Parameters
- $definition : Definition
- $method : string
Tags
Return values
ReflectionFunctionAbstractinExpression()
protected
inExpression([bool $reset = true ]) : bool
Parameters
- $reset : bool = true
Return values
boolprocessValue()
Processes a value found in a definition tree.
protected
processValue(mixed $value[, bool $isRoot = false ]) : mixed
Parameters
- $value : mixed
- $isRoot : bool = false
getExpressionLanguage()
private
getExpressionLanguage() : ExpressionLanguage
Return values
ExpressionLanguageisInlineableDefinition()
Checks if the definition is inlineable.
private
isInlineableDefinition(string $id, Definition $definition) : bool
Parameters
- $id : string
- $definition : Definition