You are here

public function Container::__construct in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/dependency-injection/Container.php \Symfony\Component\DependencyInjection\Container::__construct()
  2. 8 core/lib/Drupal/Component/DependencyInjection/Container.php \Drupal\Component\DependencyInjection\Container::__construct()
  3. 8 vendor/symfony/dependency-injection/Tests/Fixtures/php/services1-1.php \Symfony\Component\DependencyInjection\Container::__construct()
Same name and namespace in other branches
  1. 8.0 vendor/symfony/dependency-injection/Container.php \Symfony\Component\DependencyInjection\Container::__construct()
  2. 8.0 vendor/symfony/dependency-injection/Tests/Fixtures/php/services1-1.php \Symfony\Component\DependencyInjection\Container::__construct()

Constructor.

Parameters

ParameterBagInterface $parameterBag A ParameterBagInterface instance:

File

vendor/symfony/dependency-injection/Container.php, line 84

Class

Container
Container is a dependency injection container.

Namespace

Symfony\Component\DependencyInjection

Code

public function __construct(ParameterBagInterface $parameterBag = null) {
  $this->parameterBag = $parameterBag ?: new ParameterBag();
}