ParameterBag::resolveValue()

resolveValue(mixed $value, array $resolving = array()) Replaces parameter placeholders (%name%) by their values. Parameters mixed $value A value array $resolving An array of keys that are being resolved (used internally to detect circular references) Exceptions ParameterNotFoundException if a placeholder references a parameter that does not exist ParameterCircularReferenceException if a circular reference if detected RuntimeException when a given parameter has a type problem.

ParameterBag::resolveString()

string resolveString(string $value, array $resolving = array()) Resolves parameters inside a string. Parameters string $value The string to resolve array $resolving An array of keys that are being resolved (used internally to detect circular references) Return Value string The resolved string Exceptions ParameterNotFoundException if a placeholder references a parameter that does not exist ParameterCircularReferenceException if a circular reference if detected RuntimeException w

ParameterBag::resolve()

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

ParameterBag::replace()

replace(array $parameters = array()) Replaces the current parameters by a new set. Parameters array $parameters An array of parameters

ParameterBag::remove()

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

ParameterBag::remove()

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

ParameterBag::keys()

array keys() Returns the parameter keys. Return Value array An array of parameter keys

ParameterBag::isResolved()

isResolved()

ParameterBag::has()

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

ParameterBag::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