Holds parameters.
- author Fabien Potencier
CloneableInstantiable
Methods |
public __construct(array $parameters = []) |
public add(array $parameters) : void |
public all() : array |
public allDeprecated() : array |
public allNonEmpty() : array |
public cannotBeEmpty(string $name, string $message) : void |
public clear() : void |
public deprecate(string $name, string $package, string $version, string $message = 'The parameter "%s" is deprecated.') : void Deprecates a service container parameter.
|
public escapeValue(?mixed $value) : ?mixed |
public get(string $name) : UnitEnum|array|string|int|float|bool|?null |
public has(string $name) : bool |
public isResolved() : bool |
public remove(string $name) : void |
public resolve() : void |
public resolveString(string $value, array $resolving = []) : ?mixed Resolves parameters inside a string.
|
public resolveValue(?mixed $value, array $resolving = []) : ?mixed Replaces parameter placeholders (%name%) by their values.
|
public set(string $name, UnitEnum|array|string|int|float|bool|?null $value) : void |
public unescapeValue(?mixed $value) : ?mixed |
Properties |
protected array $deprecatedParameters = [] |
protected array $nonEmptyParameters = [] |
protected array $parameters = [] |
protected bool $resolved = false |