ParameterBagInterface is the interface implemented by objects that manage service container parameters.
- author Fabien Potencier
AbstractInterface
Methods |
public abstract add(array $parameters) : void Adds parameters to the service container parameters.
|
public abstract all() : array Gets the service container parameters. |
public abstract clear() : void 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) : void Removes a parameter. |
public abstract resolve() : void Replaces parameter placeholders (%name%) by their values for all parameters. |
public abstract resolveValue(?mixed $value) : ?mixed Replaces parameter placeholders (%name%) by their values.
|
public abstract set(string $name, UnitEnum|array|string|int|float|bool|?null $value) : void Sets a service container parameter.
|
public abstract unescapeValue(?mixed $value) : ?mixed Unescape parameter placeholders %. |