You are here

public function ContainerBuilder::__construct in Service Container 7

Same name in this branch
  1. 7 src/DependencyInjection/ContainerBuilder.php \Drupal\service_container\DependencyInjection\ContainerBuilder::__construct()
  2. 7 lib/Drupal/Core/DependencyInjection/ContainerBuilder.php \Drupal\Core\DependencyInjection\ContainerBuilder::__construct()
Same name and namespace in other branches
  1. 7.2 src/DependencyInjection/ContainerBuilder.php \Drupal\service_container\DependencyInjection\ContainerBuilder::__construct()

Constructs a ContainerBuilder object.

Parameters

PluginManagerInterface $service_provider_manager: The service provider manager that provides the service providers, which define the services used in the container.

1 call to ContainerBuilder::__construct()
CachedContainerBuilder::__construct in src/DependencyInjection/CachedContainerBuilder.php
Constructs a ContainerBuilder object.
1 method overrides ContainerBuilder::__construct()
CachedContainerBuilder::__construct in src/DependencyInjection/CachedContainerBuilder.php
Constructs a ContainerBuilder object.

File

src/DependencyInjection/ContainerBuilder.php, line 43
Contains \Drupal\service_container\DependencyInjection\ContainerBuilder

Class

ContainerBuilder
ContainerBuilder retrieves container definitions from service providers to build a Container.

Namespace

Drupal\service_container\DependencyInjection

Code

public function __construct(PluginManagerInterface $service_provider_manager) {
  $this->serviceProviderManager = $service_provider_manager;
}