You are here

public function ParameterBag::set in Service Container 7

Same name and namespace in other branches
  1. 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/ParameterBag/ParameterBag.php \Symfony\Component\DependencyInjection\ParameterBag\ParameterBag::set()

Sets a service container parameter.

@api

Parameters

string $name The parameter name:

mixed $value The parameter value:

Overrides ParameterBagInterface::set

1 method overrides ParameterBag::set()
FrozenParameterBag::set in modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/ParameterBag/FrozenParameterBag.php
@api

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/ParameterBag/ParameterBag.php, line 120

Class

ParameterBag
Holds parameters.

Namespace

Symfony\Component\DependencyInjection\ParameterBag

Code

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