SmsGatewayPluginManager.php in SMS Framework 2.x
File
src/Plugin/SmsGatewayPluginManager.php
View source
<?php
declare (strict_types=1);
namespace Drupal\sms\Plugin;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Plugin\DefaultPluginManager;
class SmsGatewayPluginManager extends DefaultPluginManager implements SmsGatewayPluginManagerInterface {
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/SmsGateway', $namespaces, $module_handler, 'Drupal\\sms\\Plugin\\SmsGatewayPluginInterface', 'Drupal\\sms\\Annotation\\SmsGateway');
$this
->setCacheBackend($cache_backend, 'sms_gateways');
$this
->alterInfo('sms_gateway_info');
}
}