You are here

public function Oauth2ClientPluginManager::__construct in OAuth2 Client 8.2

Same name and namespace in other branches
  1. 8.3 src/PluginManager/Oauth2ClientPluginManager.php \Drupal\oauth2_client\PluginManager\Oauth2ClientPluginManager::__construct()

Constructs an Oauth2ClientPluginManager object.

Parameters

\Traversable $namespaces: Namespaces to be searched for the plugin.

\Drupal\Core\Cache\CacheBackendInterface $cacheBackend: The cache backend.

\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: The module handler service.

Overrides DefaultPluginManager::__construct

File

src/PluginManager/Oauth2ClientPluginManager.php, line 27

Class

Oauth2ClientPluginManager
The OAuth 2 Client plugin manager.

Namespace

Drupal\oauth2_client\PluginManager

Code

public function __construct(Traversable $namespaces, CacheBackendInterface $cacheBackend, ModuleHandlerInterface $moduleHandler) {
  parent::__construct('Plugin/Oauth2Client', $namespaces, $moduleHandler, 'Drupal\\oauth2_client\\Plugin\\Oauth2Client\\Oauth2ClientPluginInterface', 'Drupal\\oauth2_client\\Annotation\\Oauth2Client');
  $this
    ->alterInfo('oauth2_client_info');
  $this
    ->setCacheBackend($cacheBackend, 'oauth2_client');
}