interface ParameterBagInterface
ParameterBagInterface.
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. | |
resolve() Replaces parameter placeholders (%name%) by their values for all 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 %. |
Clears all parameters.
LogicException | if the ParameterBagInterface can not be cleared |
Adds parameters to the service container parameters.
array | $parameters | An array of parameters |
LogicException | if the parameter can not be added |
Gets the service container parameters.
array | An array of parameters |
Gets a service container parameter.
string | $name | The parameter name |
mixed | The parameter value |
ParameterNotFoundException | if the parameter is not defined |
Removes a parameter.
string | $name | The parameter name |
Sets a service container parameter.
string | $name | The parameter name |
mixed | $value | The parameter value |
LogicException | if the parameter can not be set |
Returns true if a parameter name is defined.
string | $name | The parameter name |
bool | true if the parameter name is defined, false otherwise |
Replaces parameter placeholders (%name%) by their values for all parameters.
Replaces parameter placeholders (%name%) by their values.
mixed | $value | A value |
ParameterNotFoundException | if a placeholder references a parameter that does not exist |
Escape parameter placeholders %.
mixed | $value |
mixed |
Unescape parameter placeholders %.
mixed | $value |
mixed |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/DependencyInjection/ParameterBag/ParameterBagInterface.html