class MergeExtensionConfigurationParameterBag extends EnvPlaceholderParameterBag
protected | $parameters | from ParameterBag | |
protected | $resolved | from ParameterBag |
__construct(parent $parameterBag) | ||
clear() Clears all parameters. | from ParameterBag | |
add(array $parameters) Adds parameters to the service container parameters. | from ParameterBag | |
array | all() Gets the service container parameters. | from ParameterBag |
mixed | get(string $name) Gets a service container parameter. | from EnvPlaceholderParameterBag |
set(string $name, mixed $value) Sets a service container parameter. | from ParameterBag | |
bool | has(string $name) Returns true if a parameter name is defined. | from ParameterBag |
remove(string $name) Removes a parameter. | from ParameterBag | |
resolve() Replaces parameter placeholders (%name%) by their values for all parameters. | from EnvPlaceholderParameterBag | |
resolveValue(mixed $value, array $resolving = array()) Replaces parameter placeholders (%name%) by their values. | from ParameterBag | |
string | resolveString(string $value, array $resolving = array()) Resolves parameters inside a string. | from ParameterBag |
isResolved() | from ParameterBag | |
mixed | escapeValue(mixed $value) Escape parameter placeholders %. | from ParameterBag |
mixed | unescapeValue(mixed $value) Unescape parameter placeholders %. | from ParameterBag |
string | getEnvPlaceholderUniquePrefix() Gets the common env placeholder prefix for env vars created by this bag. | from EnvPlaceholderParameterBag |
string[][] | getEnvPlaceholders() Returns the map of env vars used in the resolved parameter values to their placeholders. | |
array | getUnusedEnvPlaceholders() | |
clearUnusedEnvPlaceholders() | from EnvPlaceholderParameterBag | |
mergeEnvPlaceholders(EnvPlaceholderParameterBag $bag) Merges the env placeholders of another EnvPlaceholderParameterBag. | from EnvPlaceholderParameterBag | |
setProvidedTypes(array $providedTypes) Maps env prefixes to their corresponding PHP types. | from EnvPlaceholderParameterBag | |
string[][] | getProvidedTypes() Gets the PHP types corresponding to env() parameter prefixes. | from EnvPlaceholderParameterBag |
freezeAfterProcessing(Extension $extension, ContainerBuilder $container) |
parent | $parameterBag |
Clears all parameters.
Adds parameters to the service container parameters.
array | $parameters | An array of parameters |
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 |
Sets a service container parameter.
string | $name | The parameter name |
mixed | $value | The parameter value |
Returns true if a parameter name is defined.
string | $name | The parameter name |
bool | true if the parameter name is defined, false otherwise |
Removes a parameter.
string | $name | The parameter name |
Replaces parameter placeholders (%name%) by their values for all parameters.
Replaces parameter placeholders (%name%) by their values.
mixed | $value | A value |
array | $resolving | An array of keys that are being resolved (used internally to detect circular references) |
ParameterNotFoundException | if a placeholder references a parameter that does not exist |
ParameterCircularReferenceException | if a circular reference if detected |
RuntimeException | when a given parameter has a type problem |
Resolves parameters inside a string.
string | $value | The string to resolve |
array | $resolving | An array of keys that are being resolved (used internally to detect circular references) |
string | The resolved string |
ParameterNotFoundException | if a placeholder references a parameter that does not exist |
ParameterCircularReferenceException | if a circular reference if detected |
RuntimeException | when a given parameter has a type problem |
Escape parameter placeholders %.
mixed | $value |
mixed |
Unescape parameter placeholders %.
mixed | $value |
mixed |
Gets the common env placeholder prefix for env vars created by this bag.
string |
Returns the map of env vars used in the resolved parameter values to their placeholders.
string[][] | A map of env var names to their placeholders |
array |
Merges the env placeholders of another EnvPlaceholderParameterBag.
EnvPlaceholderParameterBag | $bag |
Maps env prefixes to their corresponding PHP types.
array | $providedTypes |
Gets the PHP types corresponding to env() parameter prefixes.
string[][] |
Extension | $extension | |
ContainerBuilder | $container |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/DependencyInjection/Compiler/MergeExtensionConfigurationParameterBag.html