W3cubDocs

/Drupal 8

public function ContainerBuilder::__construct

public ContainerBuilder::__construct(ParameterBagInterface $parameterBag = NULL)

Constructor.

Parameters

ParameterBagInterface $parameterBag A ParameterBagInterface instance:

Overrides Container::__construct

File

core/lib/Drupal/Core/DependencyInjection/ContainerBuilder.php, line 33

Class

ContainerBuilder
Drupal's dependency injection container builder.

Namespace

Drupal\Core\DependencyInjection

Code

public function __construct(ParameterBagInterface $parameterBag = NULL) {
  $this->setResourceTracking(FALSE);
  parent::__construct($parameterBag);
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!DependencyInjection!ContainerBuilder.php/function/ContainerBuilder::__construct/8.1.x