AliasConfigurator
class AliasConfigurator extends AbstractServiceConfigurator
Traits
Constants
Properties
Methods
Details
__call($method, $args)
Parameters
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 |
Parameters
__destruct()
final ServiceConfigurator
set(string $id, string $class = null)
Registers a service.
Parameters
Return Value
final AliasConfigurator
alias(string $id, string $referencedId)
Creates an alias.
Parameters
string | $id | |
string | $referencedId | |
Return Value
final PrototypeConfigurator
load(string $namespace, string $resource)
Registers a PSR-4 namespace using a glob pattern.
Parameters
string | $namespace | |
string | $resource | |
Return Value
Gets an already defined service definition.
Parameters
Return Value
Exceptions
final ServiceConfigurator
__invoke(string $id, string $class = null)
Registers a service.
Parameters
Return Value
final $this
public()
Return Value
final $this
private()
Return Value