| Methods |
public
|
__construct(array $parameters = [])
|
#
|
public
|
clear(): void
Clears all parameters.
|
#
|
public
|
add(array $parameters): void
Adds parameters to the service container parameters.
Adds parameters to the service container parameters.
Implements
|
#
|
public
|
all(): array
Gets the service container parameters.
Gets the service container parameters.
Implements
|
#
|
public
|
allDeprecated(): array
|
#
|
public
|
get(string $name): array|bool|string|int|float|UnitEnum|null
Gets a service container parameter.
Gets a service container parameter.
Overriden by
Implements
|
#
|
public
|
set(string $name, array|bool|string|int|float|UnitEnum|null $value): void
Sets a service container parameter.
Sets a service container parameter.
Implements
|
#
|
public
|
deprecate(string $name, string $package, string $version, string $message = 'The parameter "%s" is deprecated.'): void
Deprecates a service container parameter.
Deprecates a service container parameter.
Throws
|
#
|
public
|
has(string $name): bool
Returns true if a parameter name is defined.
Returns true if a parameter name is defined.
Implements
|
#
|
public
|
remove(string $name): void
Removes a parameter.
|
#
|
public
|
resolve(): void
Replaces parameter placeholders (%name%) by their values for all parameters.
Replaces parameter placeholders (%name%) by their values for all parameters.
Overriden by
Implements
|
#
|
public
|
resolveValue<TValue is array<array|scalar>|scalar>(
TValue $value,
array $resolving = [],
): (TValue is scalar ? array|scalar : array<array|scalar>)
Replaces parameter placeholders (%name%) by their values.
Replaces parameter placeholders (%name%) by their values.
Parameters
| $resolving |
An array of keys that are being resolved (used internally to detect circular references)
|
Throws
Implements
|
#
|
public
|
resolveString(string $value, array $resolving = []): mixed
Resolves parameters inside a string.
Resolves parameters inside a string.
Parameters
| $resolving |
An array of keys that are being resolved (used internally to detect circular references)
|
Throws
|
#
|
public
|
isResolved(): bool
|
#
|
public
|
escapeValue(mixed $value): mixed
Escape parameter placeholders %.
Escape parameter placeholders %.
Implements
|
#
|
public
|
unescapeValue(mixed $value): mixed
Unescape parameter placeholders %.
Unescape parameter placeholders %.
Implements
|
#
|