You are here

public function ServiceProviderPluginManager::__construct in Service Container 7.2

Same name and namespace in other branches
  1. 7 src/DependencyInjection/ServiceProviderPluginManager.php \Drupal\service_container\DependencyInjection\ServiceProviderPluginManager::__construct()

Constructs a ServiceProviderPluginManager object.

This uses ctools for discovery of service_container ServiceProvider objects.

@codeCoverageIgnore

Overrides DefaultPluginManager::__construct

File

src/DependencyInjection/ServiceProviderPluginManager.php, line 24
Contains \Drupal\service_container\DependencyInjection\ServiceProviderPluginManager

Class

ServiceProviderPluginManager
Defines a plugin manager used for discovering container service definitions.

Namespace

Drupal\service_container\DependencyInjection

Code

public function __construct() {
  $discovery = new CToolsPluginDiscovery(array(
    'owner' => 'service_container',
    'type' => 'ServiceProvider',
  ));
  parent::__construct($discovery);
}