OpenIDConnectClientManager.php in OpenID Connect / OAuth client 8
File
src/Plugin/OpenIDConnectClientManager.php
View source
<?php
namespace Drupal\openid_connect\Plugin;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Plugin\DefaultPluginManager;
class OpenIDConnectClientManager extends DefaultPluginManager {
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');
}
}