You are here

PushQueueProcessorPluginManager.php in Salesforce Suite 5.0.x

File

modules/salesforce_push/src/PushQueueProcessorPluginManager.php
View source
<?php

namespace Drupal\salesforce_push;

use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Plugin\DefaultPluginManager;

/**
 * Plugin type manager for SF push queue processors.
 */
class PushQueueProcessorPluginManager extends DefaultPluginManager {

  /**
   * Push queue plugin processor manager.
   *
   * @param \Traversable $namespaces
   *   An object that implements \Traversable which contains the root paths
   *   keyed by the corresponding namespace to look for plugin implementations.
   * @param \Drupal\Core\Cache\CacheBackendInterface $cache_backend
   *   Cache service.
   * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
   *   Module handler service.
   */
  public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
    parent::__construct('Plugin/SalesforcePushQueueProcessor', $namespaces, $module_handler);
    $this
      ->setCacheBackend($cache_backend, 'salesforce_push_queue_processor');
  }

}

Classes

Namesort descending Description
PushQueueProcessorPluginManager Plugin type manager for SF push queue processors.