You are here

class ServiceProviderPluginManager in Service Container 7.2

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

Defines a plugin manager used for discovering container service definitions.

Hierarchy

Expanded class hierarchy of ServiceProviderPluginManager

1 file declares its use of ServiceProviderPluginManager
ServiceContainer.php in lib/ServiceContainer.php
Contains ServiceContainer

File

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

Namespace

Drupal\service_container\DependencyInjection
View source
class ServiceProviderPluginManager extends DefaultPluginManager {

  /**
   * Constructs a ServiceProviderPluginManager object.
   *
   * This uses ctools for discovery of service_container ServiceProvider objects.
   *
   * @codeCoverageIgnore
   */
  public function __construct() {
    $discovery = new CToolsPluginDiscovery(array(
      'owner' => 'service_container',
      'type' => 'ServiceProvider',
    ));
    parent::__construct($discovery);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
PluginManagerBase::$discovery protected property The object that discovers plugins managed by this manager.
PluginManagerBase::$factory protected property The object that instantiates plugins managed by this manager.
PluginManagerBase::createInstance public function Creates a pre-configured instance of a plugin. Overrides FactoryInterface::createInstance
PluginManagerBase::getDefinition public function Gets a specific plugin definition. Overrides DiscoveryInterface::getDefinition
PluginManagerBase::getDefinitions public function Gets the definition of all plugins for this type. Overrides DiscoveryInterface::getDefinitions
PluginManagerBase::getInstance public function Gets a preconfigured instance of a plugin. Overrides MapperInterface::getInstance
PluginManagerBase::hasDefinition public function Indicates if a specific plugin definition exists. Overrides DiscoveryInterface::hasDefinition
ServiceProviderPluginManager::__construct public function Constructs a ServiceProviderPluginManager object. Overrides DefaultPluginManager::__construct