W3cubDocs

/Symfony 4.1

ReplaceAliasByActualDefinitionPass

class ReplaceAliasByActualDefinitionPass extends AbstractRecursivePass

Replaces aliases with actual service definitions, effectively removing these aliases.

Properties

protected ContainerBuilder $container from AbstractRecursivePass
protected $currentId from AbstractRecursivePass

Methods

process(ContainerBuilder $container)

Process the Container to replace aliases with service definitions.

mixed processValue(mixed $value, bool $isRoot = false)

Processes a value found in a definition tree.

ReflectionFunctionAbstract|null getConstructor(Definition $definition, bool $required) from AbstractRecursivePass
ReflectionFunctionAbstract getReflectionMethod(Definition $definition, string $method) from AbstractRecursivePass

Details

process(ContainerBuilder $container)

Process the Container to replace aliases with service definitions.

Parameters

ContainerBuilder $container

Exceptions

InvalidArgumentException if the service definition does not exist

protected mixed processValue(mixed $value, bool $isRoot = false)

Processes a value found in a definition tree.

Parameters

mixed $value
bool $isRoot

Return Value

mixed The processed value

protected ReflectionFunctionAbstract|null getConstructor(Definition $definition, bool $required)

Parameters

Definition $definition
bool $required

Return Value

ReflectionFunctionAbstract|null

Exceptions

RuntimeException

protected ReflectionFunctionAbstract getReflectionMethod(Definition $definition, string $method)

Parameters

Definition $definition
string $method

Return Value

ReflectionFunctionAbstract

Exceptions

RuntimeException