PhpmailerOauth2PluginManager.php in PHPMailer SMTP 2.1.x
File
src/PluginManager/PhpmailerOauth2PluginManager.php
View source
<?php
namespace Drupal\phpmailer_smtp\PluginManager;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Plugin\DefaultPluginManager;
class PhpmailerOauth2PluginManager extends DefaultPluginManager implements PhpmailerOauth2PluginManagerInterface {
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');
}
}