Documentation

AliasConfigurator extends AbstractServiceConfigurator
in package
Uses DeprecateTrait, PublicTrait

Tags
author

Nicolas Grekas p@tchwork.com

Table of Contents

FACTORY  = 'alias'
$valuePreProcessor  : callable
$id  : mixed
$parent  : mixed
$defaultTags  : mixed
__call()  : mixed
__construct()  : mixed
__destruct()  : mixed
__invoke()  : ServiceConfigurator
Registers a service.
__sleep()  : array<string|int, mixed>
__wakeup()  : mixed
alias()  : AliasConfigurator
Creates an alias.
deprecate()  : $this
Whether this definition is deprecated, that means it should not be called anymore.
get()  : ServiceConfigurator
Gets an already defined service definition.
load()  : PrototypeConfigurator
Registers a PSR-4 namespace using a glob pattern.
private()  : $this
processValue()  : mixed
Checks that a value is valid, optionally replacing Definition and Reference configurators by their configure value.
public()  : $this
remove()  : ServicesConfigurator
Removes an already defined service definition or alias.
set()  : ServiceConfigurator
Registers a service.
stack()  : AliasConfigurator
Registers a stack of decorator services.

Constants

Properties

Methods

__call()

public __call(string $method, array<string|int, mixed> $args) : mixed
Parameters
$method : string
$args : array<string|int, mixed>
Return values
mixed

__sleep()

public __sleep() : array<string|int, mixed>
Return values
array<string|int, mixed>

deprecate()

Whether this definition is deprecated, that means it should not be called anymore.

public final deprecate() : $this
Tags
throws
InvalidArgumentException

when the message template is invalid

Return values
$this

private()

public final private() : $this
Return values
$this

processValue()

Checks that a value is valid, optionally replacing Definition and Reference configurators by their configure value.

public static processValue(mixed $value[, bool $allowServices = false ]) : mixed
Parameters
$value : mixed
$allowServices : bool = false

whether Definition and Reference are allowed; by default, only scalars and arrays are

Return values
mixed

the value, optionally cast to a Definition/Reference

public()

public final public() : $this
Return values
$this

Search results