Copied!
CloneableInstantiable
Methods
public __construct(Symfony\Component\DependencyInjection\Container $container)
public Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag::add(array $parameters)
 
  • return never
public all() : array
public Symfony\Component\DependencyInjection\ParameterBag\ParameterBag::allDeprecated() : array
public Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag::clear()
 
  • return never
public Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag::deprecate(string $name, string $package, string $version, string $message = 'The parameter "%s" is deprecated.')
 
  • return never
public Symfony\Component\DependencyInjection\ParameterBag\ParameterBag::escapeValue(?mixed $value) : ?mixed
public get(string $name) : UnitEnum|array|string|int|float|bool|?null
public has(string $name) : bool
public Symfony\Component\DependencyInjection\ParameterBag\ParameterBag::isResolved()
 
  • return bool
public Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag::remove(string $name)
 
  • return never
public Symfony\Component\DependencyInjection\ParameterBag\ParameterBag::resolve()
 
  • return void
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.

  • template TValue of array<array|scalar>|scalar
  • param \TValue $value
  • param array $resolving An array of keys that are being resolved (used internally to detect circular references)
  • psalm-return (TValue is scalar ? array|scalar : array<array|scalar>)
  • 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\FrozenParameterBag::set(string $name, UnitEnum|array|string|int|float|bool|?null $value)
 
  • return never
public Symfony\Component\DependencyInjection\ParameterBag\ParameterBag::unescapeValue(?mixed $value) : ?mixed
Properties
protected array Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag::$deprecatedParameters
protected Symfony\Component\DependencyInjection\ParameterBag\ParameterBag::$parameters = []
protected Symfony\Component\DependencyInjection\ParameterBag\ParameterBag::$resolved = false
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration