abstract class AbstractServiceConfigurator extends AbstractConfigurator

Constants

FACTORY

Properties

protected $definition from AbstractConfigurator
protected $parent
protected $id

Methods

__call($method, $args)

No description

static mixed
processValue(mixed $value, bool $allowServices = false)

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

__construct(ServicesConfigurator $parent, Definition $definition, $id = null, array $defaultTags = [])

No description

__destruct()

No description

set(string $id, string|null $class = null)

Registers a service.

alias(string $id, string $referencedId)

Creates an alias.

load(string $namespace, string $resource)

Registers a PSR-4 namespace using a glob pattern.

get(string $id)

Gets an already defined service definition.

__invoke(string $id, string|null $class = null)

Registers a service.

Details

in AbstractConfigurator at line 28
__call($method, $args)

Parameters

$method
$args

in AbstractConfigurator at line 45
static mixed processValue(mixed $value, bool $allowServices = false)

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

Parameters

mixed $value
bool $allowServices whether Definition and Reference are allowed; by default, only scalars and arrays are

Return Value

mixed the value, optionally cast to a Definition/Reference

at line 23
__construct(ServicesConfigurator $parent, Definition $definition, $id = null, array $defaultTags = [])

Parameters

ServicesConfigurator $parent
Definition $definition
$id
array $defaultTags

at line 31
__destruct()

at line 50
final ServiceConfigurator set(string $id, string|null $class = null)

Registers a service.

Parameters

string $id
string|null $class

Return Value

ServiceConfigurator

at line 65
final AliasConfigurator alias(string $id, string $referencedId)

Creates an alias.

Parameters

string $id
string $referencedId

Return Value

AliasConfigurator

at line 80
final PrototypeConfigurator load(string $namespace, string $resource)

Registers a PSR-4 namespace using a glob pattern.

Parameters

string $namespace
string $resource

Return Value

PrototypeConfigurator

at line 96
final ServiceConfigurator get(string $id)

Gets an already defined service definition.

Parameters

string $id

Return Value

ServiceConfigurator

Exceptions

ServiceNotFoundException if the service definition does not exist

at line 111
final ServiceConfigurator __invoke(string $id, string|null $class = null)

Registers a service.

Parameters

string $id
string|null $class

Return Value

ServiceConfigurator