You are here

public function ParameterBag::set in Zircon Profile 8

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

Sets a parameter by name.

Parameters

string $key The key:

mixed $value The value:

1 call to ParameterBag::set()
FileBag::set in vendor/symfony/http-foundation/FileBag.php
Sets a parameter by name.
1 method overrides ParameterBag::set()
FileBag::set in vendor/symfony/http-foundation/FileBag.php
Sets a parameter by name.

File

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

Class

ParameterBag
ParameterBag is a container for key/value pairs.

Namespace

Symfony\Component\HttpFoundation

Code

public function set($key, $value) {
  $this->parameters[$key] = $value;
}