FrozenParameterBag
class FrozenParameterBag extends ParameterBag
Holds read-only parameters.
Properties
protected | $parameters | from ParameterBag | |
protected | $resolved | from ParameterBag |
Methods
__construct(array $parameters = array())
For performance reasons, the constructor assumes that all keys are already lowercased.
clear()
Clears all parameters.
add(array $parameters)
Adds parameters to the service container parameters.
set(string $name, mixed $value)
Sets a service container parameter.
remove(string $name)
Removes a parameter.
resolve()
Replaces parameter placeholders (%name%) by their values for all parameters.
from ParameterBag
resolveValue(mixed $value, array $resolving = array())
Replaces parameter placeholders (%name%) by their values.
from ParameterBag
string
resolveString(string $value, array $resolving = array())
Resolves parameters inside a string.
from ParameterBag
Details
__construct(array $parameters = array())
For performance reasons, the constructor assumes that all keys are already lowercased.
This is always the case when used internally.
resolveValue(mixed $value, array $resolving = array())
Replaces parameter placeholders (%name%) by their values.