public function Container::__construct in Zircon Profile 8
Same name in this branch
- 8 vendor/symfony/dependency-injection/Container.php \Symfony\Component\DependencyInjection\Container::__construct()
- 8 core/lib/Drupal/Component/DependencyInjection/Container.php \Drupal\Component\DependencyInjection\Container::__construct()
- 8 vendor/symfony/dependency-injection/Tests/Fixtures/php/services1-1.php \Symfony\Component\DependencyInjection\Container::__construct()
Same name and namespace in other branches
- 8.0 vendor/symfony/dependency-injection/Container.php \Symfony\Component\DependencyInjection\Container::__construct()
- 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\DependencyInjectionCode
public function __construct(ParameterBagInterface $parameterBag = null) {
$this->parameterBag = $parameterBag ?: new ParameterBag();
}