You are here

public function ParameterBag::add in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/http-foundation/ParameterBag.php \Symfony\Component\HttpFoundation\ParameterBag::add()
  2. 8 vendor/symfony/dependency-injection/ParameterBag/ParameterBag.php \Symfony\Component\DependencyInjection\ParameterBag\ParameterBag::add()
Same name and namespace in other branches
  1. 8.0 vendor/symfony/dependency-injection/ParameterBag/ParameterBag.php \Symfony\Component\DependencyInjection\ParameterBag\ParameterBag::add()

Adds parameters to the service container parameters.

Parameters

array $parameters An array of parameters:

Overrides ParameterBagInterface::add

1 call to ParameterBag::add()
ParameterBag::__construct in vendor/symfony/dependency-injection/ParameterBag/ParameterBag.php
Constructor.
1 method overrides ParameterBag::add()
FrozenParameterBag::add in vendor/symfony/dependency-injection/ParameterBag/FrozenParameterBag.php
Adds parameters to the service container parameters.

File

vendor/symfony/dependency-injection/ParameterBag/ParameterBag.php, line 51

Class

ParameterBag
Holds parameters.

Namespace

Symfony\Component\DependencyInjection\ParameterBag

Code

public function add(array $parameters) {
  foreach ($parameters as $key => $value) {
    $this->parameters[strtolower($key)] = $value;
  }
}