You are here

public function FedExPluginManager::__construct in Commerce FedEx 8

FedExServiceManager constructor.

Parameters

\Traversable $namespaces: An object that implements \Traversable which contains the root paths keyed by the corresponding namespace to look for plugin implementations.

\Drupal\Core\Cache\CacheBackendInterface $cache_backend: The cache backend.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

Overrides DefaultPluginManager::__construct

File

src/FedExPluginManager.php, line 27

Class

FedExPluginManager
The manager for FedEx Service Plugins.

Namespace

Drupal\commerce_fedex

Code

public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
  parent::__construct('Plugin/Commerce/FedEx', $namespaces, $module_handler, 'Drupal\\commerce_fedex\\Plugin\\Commerce\\FedEx\\FedExPluginInterface', 'Drupal\\commerce_fedex\\Annotation\\CommerceFedExPlugin');
  $this
    ->setCacheBackend($cache_backend, 'commerce_fedex_plugins');
}