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/http-foundation/ParameterBag.php \Symfony\Component\HttpFoundation\ParameterBag::add()

Adds parameters.

Parameters

array $parameters An array of parameters:

1 method overrides ParameterBag::add()
FileBag::add in vendor/symfony/http-foundation/FileBag.php
Adds parameters.

File

vendor/symfony/http-foundation/ParameterBag.php, line 73

Class

ParameterBag
ParameterBag is a container for key/value pairs.

Namespace

Symfony\Component\HttpFoundation

Code

public function add(array $parameters = array()) {
  $this->parameters = array_replace($this->parameters, $parameters);
}