public function Container::setParameter

Sets a parameter.

@api

Parameters

string $name The parameter name:

mixed $value The parameter value:

Overrides ContainerInterface::setParameter

1 method overrides Container::setParameter()
ProjectServiceContainer::setParameter in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services10.php
Sets a parameter.

File

drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Container.php, line 171

Class

Container
Container is a dependency injection container.

Namespace

Symfony\Component\DependencyInjection

Code

public function setParameter($name, $value) {
  $this->parameterBag
    ->set($name, $value);
}