ReplaceAliasByActualDefinitionPass
extends AbstractRecursivePass
in package
Replaces aliases with actual service definitions, effectively removing these aliases.
Tags
Table of Contents
Properties
- $container : ContainerBuilder
- $currentId : mixed
- $skipScalars : bool
- $replacements : array<string|int, mixed>
Methods
- process() : void
- Process the Container to replace aliases with service definitions.
- enableExpressionProcessing() : void
- getConstructor() : ReflectionFunctionAbstract|null
- getReflectionMethod() : ReflectionFunctionAbstract
- inExpression() : bool
- processValue() : mixed
- Processes a value found in a definition tree.
Properties
$container
protected
ContainerBuilder
$container
$currentId
protected
mixed
$currentId
$skipScalars
protected
bool
$skipScalars
= true
$replacements
private
array<string|int, mixed>
$replacements
Methods
process()
Process the Container to replace aliases with service definitions.
public
process(ContainerBuilder $container) : void
Parameters
- $container : ContainerBuilder
Tags
enableExpressionProcessing()
protected
enableExpressionProcessing() : void
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