public function IdentityChannelManager::__construct in Courier 8
Same name and namespace in other branches
- 2.x src/Service/IdentityChannelManager.php \Drupal\courier\Service\IdentityChannelManager::__construct()
Constructs a new identity channel manager.
Overrides DefaultPluginManager::__construct
File
- src/
Service/ IdentityChannelManager.php, line 19
Class
- IdentityChannelManager
- Manages discovery and instantiation of CourierIdentity plugins.
Namespace
Drupal\courier\ServiceCode
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/IdentityChannel', $namespaces, $module_handler, 'Drupal\\courier\\Plugin\\IdentityChannel\\IdentityChannelPluginInterface', 'Drupal\\courier\\Annotation\\IdentityChannel');
$this
->alterInfo('courier_identity_channel_info');
$this
->setCacheBackend($cache_backend, 'courier_identity_channel_info_plugins');
}