ParameterBagInterface is the interface implemented by objects that manage service container parameters.
- author Fabien Potencier
AbstractInterface
Methods |
public abstract add(array $parameters) Adds parameters to the service container parameters.
|
public abstract all() : array Gets the service container parameters. |
public abstract clear() Clears all parameters.
|
public abstract escapeValue(?mixed $value) : ?mixed Escape parameter placeholders %. |
public abstract get(string $name) : UnitEnum|array|string|int|float|bool|?null Gets a service container parameter.
|
public abstract has(string $name) : bool Returns true if a parameter name is defined. |
public abstract remove(string $name) Removes a parameter.
|
public abstract resolve() Replaces parameter placeholders (%name%) by their values for all parameters.
|
public abstract resolveValue(?mixed $value) Replaces parameter placeholders (%name%) by their values.
|
public abstract set(string $name, UnitEnum|array|string|int|float|bool|?null $value) Sets a service container parameter.
|
public abstract unescapeValue(?mixed $value) : ?mixed Unescape parameter placeholders %. |