Copied!
Cloneable Instantiable
Methods
public Symfony\Component\DependencyInjection\ParameterBag\ParameterBag :: __construct ( array $parameters = [ ] )
public Symfony\Component\DependencyInjection\ParameterBag\ParameterBag :: add ( array $parameters )
 
public Symfony\Component\DependencyInjection\ParameterBag\ParameterBag :: all () : array
 
public Symfony\Component\DependencyInjection\ParameterBag\ParameterBag :: clear ()
 
public clearUnusedEnvPlaceholders ()
public Symfony\Component\DependencyInjection\ParameterBag\ParameterBag :: escapeValue ( ? mixed $value ) : ? mixed
 
public get ( string $name ) : array | string | int | float | bool | null
 
public getEnvPlaceholders () : array
 

Returns the map of env vars used in the resolved parameter values to their placeholders.

  • return string [] A map of env var names to their placeholders
public getEnvPlaceholderUniquePrefix () : string
 

Gets the common env placeholder prefix for env vars created by this bag.

public getProvidedTypes () : array
 

Gets the PHP types corresponding to env() parameter prefixes.

  • return string []
public getUnusedEnvPlaceholders () : array
public Symfony\Component\DependencyInjection\ParameterBag\ParameterBag :: has ( string $name ) : bool
 
public Symfony\Component\DependencyInjection\ParameterBag\ParameterBag :: isResolved ()
public mergeEnvPlaceholders ( self $bag )
 

Merges the env placeholders of another EnvPlaceholderParameterBag.

public Symfony\Component\DependencyInjection\ParameterBag\ParameterBag :: remove ( string $name )
 
public resolve ()
 
public Symfony\Component\DependencyInjection\ParameterBag\ParameterBag :: resolveString ( string $value , array $resolving = [ ] ) : ? mixed
 

Resolves parameters inside a string.

  • param array $resolving An array of keys that are being resolved (used internally to detect circular references)
  • throws ParameterNotFoundException if a placeholder references a parameter that does not exist
  • throws ParameterCircularReferenceException if a circular reference if detected
  • throws RuntimeException when a given parameter has a type problem
public Symfony\Component\DependencyInjection\ParameterBag\ParameterBag :: resolveValue ( ? mixed $value , array $resolving = [ ] ) : ? mixed
 

Replaces parameter placeholders (%name%) by their values.

  • param array $resolving An array of keys that are being resolved (used internally to detect circular references)
  • throws ParameterNotFoundException if a placeholder references a parameter that does not exist
  • throws ParameterCircularReferenceException if a circular reference if detected
  • throws RuntimeException when a given parameter has a type problem
public Symfony\Component\DependencyInjection\ParameterBag\ParameterBag :: set ( string $name , UnitEnum | array | string | int | float | bool | null $value )
 
public setProvidedTypes ( array $providedTypes )
 

Maps env prefixes to their corresponding PHP types.

public Symfony\Component\DependencyInjection\ParameterBag\ParameterBag :: unescapeValue ( ? mixed $value ) : ? mixed
 
Properties
protected Symfony\Component\DependencyInjection\ParameterBag\ParameterBag :: $parameters
protected Symfony\Component\DependencyInjection\ParameterBag\ParameterBag :: $resolved
Properties
private static int $counter
private array $envPlaceholders
private string $envPlaceholderUniquePrefix
private array $providedTypes
private array $unusedEnvPlaceholders
Properties
private static int $counter
© 2022 Bruce Wells
Search Namespaces \ Classes
Configuration