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/dependency-injection/ParameterBag/ParameterBag.php \Symfony\Component\DependencyInjection\ParameterBag\ParameterBag::set()

Sets a service container parameter.

Parameters

string $name The parameter name:

mixed $value The parameter value:

Overrides ParameterBagInterface::set

1 method overrides ParameterBag::set()
FrozenParameterBag::set in vendor/symfony/dependency-injection/ParameterBag/FrozenParameterBag.php
Sets a service container parameter.

File

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

Class

ParameterBag
Holds parameters.

Namespace

Symfony\Component\DependencyInjection\ParameterBag

Code

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