You are here

public function RateLimitPluginManager::__construct in RESTful 7.2

Constructs RateLimitPluginManager.

Parameters

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

\DrupalCacheInterface $cache_backend: Cache backend instance to use.

File

src/Plugin/RateLimitPluginManager.php, line 24
Contains \Drupal\restful\Plugin\RateLimitPluginManager.

Class

RateLimitPluginManager

Namespace

Drupal\restful\Plugin

Code

public function __construct(\Traversable $namespaces, \DrupalCacheInterface $cache_backend) {
  parent::__construct('Plugin/rate_limit', $namespaces, 'Drupal\\restful\\Plugin\\rate_limit\\RateLimitInterface', '\\Drupal\\restful\\Annotation\\RateLimit');
  $this
    ->setCacheBackend($cache_backend, 'rate_limit_plugins');
  $this
    ->alterInfo('rate_limit_plugin');
}