You are here

public function ResourcePluginManager::__construct in RESTful 7.2

Constructs ResourcePluginManager.

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.

RequestInterface $request: The request object.

File

src/Plugin/ResourcePluginManager.php, line 35
Contains \Drupal\restful\Plugin\ResourcePluginManager.

Class

ResourcePluginManager

Namespace

Drupal\restful\Plugin

Code

public function __construct(\Traversable $namespaces, \DrupalCacheInterface $cache_backend, RequestInterface $request) {
  parent::__construct('Plugin/resource', $namespaces, 'Drupal\\restful\\Plugin\\resource\\ResourceInterface', '\\Drupal\\restful\\Annotation\\Resource');
  $this
    ->setCacheBackend($cache_backend, 'resource_plugins');
  $this
    ->alterInfo('resource_plugin');
  $this->request = $request;
}