ContainerBag
class ContainerBag extends FrozenParameterBag implements ContainerBagInterface
Properties
protected | $parameters | from ParameterBag | |
protected | $resolved | from ParameterBag |
Methods
__construct(Container $container)
For performance reasons, the constructor assumes that all keys are already lowercased.
array
all()
Gets the service container parameters.
mixed
get(string $name)
Gets a service container parameter.
bool
has(string $name)
Returns true if a parameter name is defined.
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(Container $container)
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.