ParameterBagInterface::resolveValue()

resolveValue(mixed $value) Replaces parameter placeholders (%name%) by their values. Parameters mixed $value A value Exceptions ParameterNotFoundException if a placeholder references a parameter that does not exist

ParameterBagInterface::resolve()

resolve() Replaces parameter placeholders (%name%) by their values for all parameters.

ParameterBagInterface::remove()

remove(string $name) Removes a parameter. Parameters string $name The parameter name

ParameterBagInterface::has()

bool has(string $name) Returns true if a parameter name is defined. Parameters string $name The parameter name Return Value bool true if the parameter name is defined, false otherwise

ParameterBagInterface::escapeValue()

mixed escapeValue(mixed $value) Escape parameter placeholders %. Parameters mixed $value Return Value mixed

ParameterBagInterface::clear()

clear() Clears all parameters. Exceptions LogicException if the ParameterBagInterface can not be cleared

ParameterBagInterface::all()

array all() Gets the service container parameters. Return Value array An array of parameters

ParameterBagInterface::add()

add(array $parameters) Adds parameters to the service container parameters. Parameters array $parameters An array of parameters Exceptions LogicException if the parameter can not be added

ParameterBagInterface

interface ParameterBagInterface ParameterBagInterface. Methods 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. remove(string $name) Removes a parameter. set(string $name, mixed $value) Sets a service container parameter. bool has(string $name) Returns true if a parameter name is defined.

ParameterBag::unescapeValue()

mixed unescapeValue(mixed $value) Unescape parameter placeholders %. Parameters mixed $value Return Value mixed