You are here

public function ParameterBag::__construct in Service Container 7.2

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

Constructor.

@api

Parameters

array $parameters An array of parameters:

1 method overrides ParameterBag::__construct()
FrozenParameterBag::__construct in modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/ParameterBag/FrozenParameterBag.php
Constructor.

File

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

Class

ParameterBag
Holds parameters.

Namespace

Symfony\Component\DependencyInjection\ParameterBag

Code

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