class ParameterBag implements ParameterBagInterface
Holds parameters.
Methods
__construct(array $parameters = array()) | ||
clear() Clears all parameters. | ||
add(array $parameters) Adds parameters to the service container parameters. | ||
array | all() Gets the service container parameters. | |
mixed | get(string $name) Gets a service container parameter. | |
set(string $name, mixed $value) Sets a service container parameter. | ||
bool | has(string $name) Returns true if a parameter name is defined. | |
remove(string $name) Removes a parameter. | ||
resolve() Replaces parameter placeholders (%name%) by their values for all parameters. | ||
resolveValue(mixed $value, array $resolving = array()) Replaces parameter placeholders (%name%) by their values. | ||
string | resolveString(string $value, array $resolving = array()) Resolves parameters inside a string. | |
isResolved() | ||
mixed | escapeValue(mixed $value) Escape parameter placeholders %. | |
mixed | unescapeValue(mixed $value) Unescape parameter placeholders %. |
Details
__construct(array $parameters = array())
clear()
Clears all parameters.
add(array $parameters)
Adds parameters to the service container parameters.
array all()
Gets the service container parameters.
mixed get(string $name)
Gets a service container parameter.
set(string $name, mixed $value)
Sets a service container parameter.
bool has(string $name)
Returns true if a parameter name is defined.
remove(string $name)
Removes a parameter.
resolve()
Replaces parameter placeholders (%name%) by their values for all parameters.
resolveValue(mixed $value, array $resolving = array())
Replaces parameter placeholders (%name%) by their values.
string resolveString(string $value, array $resolving = array())
Resolves parameters inside a string.
isResolved()
mixed escapeValue(mixed $value)
Escape parameter placeholders %.
mixed unescapeValue(mixed $value)
Unescape parameter placeholders %.
Please login to continue.