You are here

public function BillingScheduleManager::__construct in Commerce Recurring Framework 8

Constructs a new BillingScheduleManager object.

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/BillingScheduleManager.php, line 31

Class

BillingScheduleManager
Manages discovery and instantiation of billing schedule plugins.

Namespace

Drupal\commerce_recurring

Code

public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
  parent::__construct('Plugin/Commerce/BillingSchedule', $namespaces, $module_handler, BillingScheduleInterface::class, CommerceBillingSchedule::class);
  $this
    ->alterInfo('commerce_billing_schedule_info');
  $this
    ->setCacheBackend($cache_backend, 'commerce_billing_schedule_plugins');
}