Oauth2ClientPluginManager.php in OAuth2 Client 8.3
File
src/PluginManager/Oauth2ClientPluginManager.php
View source
<?php
namespace Drupal\oauth2_client\PluginManager;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Plugin\DefaultPluginManager;
class Oauth2ClientPluginManager extends DefaultPluginManager implements Oauth2ClientPluginManagerInterface {
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');
}
}