You are here

public function OpenIDConnectClientManager::__construct in OpenID Connect / OAuth client 2.x

Same name and namespace in other branches
  1. 8 src/Plugin/OpenIDConnectClientManager.php \Drupal\openid_connect\Plugin\OpenIDConnectClientManager::__construct()

Constructor for OpenIDConnectClientManager objects.

Parameters

\Traversable $namespaces: An object that implements \Traversable which contains the root paths keyed by the corresponding namespace to look for plugin implementations.

\Drupal\Core\Cache\CacheBackendInterface $cache_backend: Cache backend instance to use.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler to invoke the alter hook with.

Overrides DefaultPluginManager::__construct

File

src/Plugin/OpenIDConnectClientManager.php, line 25

Class

OpenIDConnectClientManager
Provides the OpenID Connect client plugin manager.

Namespace

Drupal\openid_connect\Plugin

Code

public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
  parent::__construct('Plugin/OpenIDConnectClient', $namespaces, $module_handler, 'Drupal\\openid_connect\\Plugin\\OpenIDConnectClientInterface', 'Drupal\\openid_connect\\Annotation\\OpenIDConnectClient');
  $this
    ->alterInfo('openid_connect_client_info');
  $this
    ->setCacheBackend($cache_backend, 'openid_connect_client_plugins');
}