Copied!

Holds read-only parameters.

CloneableInstantiable
Methods
public __construct(array $parameters = [])
 

For performance reasons, the constructor assumes that
all keys are already lowercased.

This is always the case when used internally.

  • param array $parameters An array of parameters
public add(array $parameters)
 
    public Symfony\Component\DependencyInjection\ParameterBag\ParameterBag::all() : array
     
      public clear()
       
        public Symfony\Component\DependencyInjection\ParameterBag\ParameterBag::escapeValue(?mixed $value) : ?mixed
         
          public Symfony\Component\DependencyInjection\ParameterBag\ParameterBag::get(string $name) : UnitEnum|array|string|int|float|bool|null
           
            public Symfony\Component\DependencyInjection\ParameterBag\ParameterBag::has(string $name) : bool
             
              public Symfony\Component\DependencyInjection\ParameterBag\ParameterBag::isResolved()
              public remove(string $name)
               
                public Symfony\Component\DependencyInjection\ParameterBag\ParameterBag::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 set(string $name, UnitEnum|array|string|int|float|bool|null $value)
                   
                    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
                      © 2022 Bruce Wells
                      Search Namespaces \ Classes
                      Configuration