W3cubDocs

/Symfony 4.1

ContainerBagInterface

interface ContainerBagInterface implements ContainerInterface

Methods

array all()

Gets the service container parameters.

resolveValue(mixed $value)

Replaces parameter placeholders (%name%) by their values.

mixed escapeValue(mixed $value)

Escape parameter placeholders %.

mixed unescapeValue(mixed $value)

Unescape parameter placeholders %.

Details

array all()

Gets the service container parameters.

Return Value

array An array of parameters

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

mixed escapeValue(mixed $value)

Escape parameter placeholders %.

Parameters

mixed $value

Return Value

mixed

mixed unescapeValue(mixed $value)

Unescape parameter placeholders %.

Parameters

mixed $value

Return Value

mixed