extends |
ContainerInterface |
|---|
ContainerInterface is the interface implemented by service container classes.
| Methods | ||
|---|---|---|
public
|
set(string $id, ?object $service): void
|
# |
public
|
get<B is self::*_REFERENCE>(string $id, B $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE): ?object
|
# |
public
|
has(string $id): bool
|
# |
public
|
initialized(string $id): bool
|
# |
public
|
getParameter(string $name): array|bool|string|int|float|UnitEnum|null
|
# |
public
|
hasParameter(string $name): bool
|
# |
public
|
setParameter(string $name, array|bool|string|int|float|UnitEnum|null $value): void
|
# |
| Constants | ||
|---|---|---|
public
|
RUNTIME_EXCEPTION_ON_INVALID_REFERENCE = 0
|
# |
public
|
EXCEPTION_ON_INVALID_REFERENCE = 1
|
# |
public
|
NULL_ON_INVALID_REFERENCE = 2
|
# |
public
|
IGNORE_ON_INVALID_REFERENCE = 3
|
# |
public
|
IGNORE_ON_UNINITIALIZED_REFERENCE = 4
|
# |