You are here

public function PhpmailerOauth2PluginManager::__construct in PHPMailer SMTP 2.1.x

Constructs a PhpmailerOauth2PluginManager 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/PhpmailerOauth2PluginManager.php, line 24

Class

PhpmailerOauth2PluginManager
The PHPMailer OAuth 2 plugin manager.

Namespace

Drupal\phpmailer_smtp\PluginManager

Code

public function __construct(\Traversable $namespaces, CacheBackendInterface $cacheBackend, ModuleHandlerInterface $moduleHandler) {
  parent::__construct('Plugin/PhpmailerOauth2', $namespaces, $moduleHandler, 'Drupal\\phpmailer_smtp\\Plugin\\PhpmailerOauth2\\PhpmailerOauth2PluginInterface', 'Drupal\\phpmailer_smtp\\Annotation\\PhpmailerOauth2');
  $this
    ->alterInfo('phpmailer_oauth2_info');
  $this
    ->setCacheBackend($cacheBackend, 'phpmailer_oauth2');
}