ParameterBagInterface
in
ParameterBagInterface is the interface implemented by objects that manage service container parameters.
Tags
Table of Contents
Methods
- add() : mixed
- Adds parameters to the service container parameters.
- all() : array<string|int, mixed>
- Gets the service container parameters.
- clear() : mixed
- Clears all parameters.
- escapeValue() : mixed
- Escape parameter placeholders %.
- get() : array<string|int, mixed>|bool|string|int|float|UnitEnum|null
- Gets a service container parameter.
- has() : bool
- Returns true if a parameter name is defined.
- remove() : mixed
- Removes a parameter.
- resolve() : mixed
- Replaces parameter placeholders (%name%) by their values for all parameters.
- resolveValue() : mixed
- Replaces parameter placeholders (%name%) by their values.
- set() : mixed
- Sets a service container parameter.
- unescapeValue() : mixed
- Unescape parameter placeholders %.
Methods
add()
Adds parameters to the service container parameters.
public
add(array<string|int, mixed> $parameters) : mixed
Parameters
- $parameters : array<string|int, mixed>
Tags
all()
Gets the service container parameters.
public
all() : array<string|int, mixed>
Return values
array<string|int, mixed>clear()
Clears all parameters.
public
clear() : mixed
Tags
escapeValue()
Escape parameter placeholders %.
public
escapeValue(mixed $value) : mixed
Parameters
- $value : mixed
get()
Gets a service container parameter.
public
get(string $name) : array<string|int, mixed>|bool|string|int|float|UnitEnum|null
Parameters
- $name : string
Tags
Return values
array<string|int, mixed>|bool|string|int|float|UnitEnum|nullhas()
Returns true if a parameter name is defined.
public
has(string $name) : bool
Parameters
- $name : string
Return values
boolremove()
Removes a parameter.
public
remove(string $name) : mixed
Parameters
- $name : string
resolve()
Replaces parameter placeholders (%name%) by their values for all parameters.
public
resolve() : mixed
resolveValue()
Replaces parameter placeholders (%name%) by their values.
public
resolveValue(mixed $value) : mixed
Parameters
- $value : mixed
Tags
set()
Sets a service container parameter.
public
set(string $name, array<string|int, mixed>|bool|string|int|float|UnitEnum|null $value) : mixed
Parameters
- $name : string
- $value : array<string|int, mixed>|bool|string|int|float|UnitEnum|null
Tags
unescapeValue()
Unescape parameter placeholders %.
public
unescapeValue(mixed $value) : mixed
Parameters
- $value : mixed