You are here

public function FrozenParameterBag::__construct in Service Container 7

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

Constructor.

For performance reasons, the constructor assumes that all keys are already lowercased.

This is always the case when used internally.

@api

Parameters

array $parameters An array of parameters:

Overrides ParameterBag::__construct

File

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

Class

FrozenParameterBag
Holds read-only parameters.

Namespace

Symfony\Component\DependencyInjection\ParameterBag

Code

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