public function AuthenticationPluginManager::__construct in RESTful 7.2
Constructs AuthenticationPluginManager.
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/ AuthenticationPluginManager.php, line 43 - Contains \Drupal\restful\Plugin\AuthenticationPluginManager.
Class
- AuthenticationPluginManager
- Authentication plugin manager.
Namespace
Drupal\restful\PluginCode
public function __construct(\Traversable $namespaces, \DrupalCacheInterface $cache_backend) {
parent::__construct('Plugin/authentication', $namespaces, 'Drupal\\restful\\Plugin\\authentication\\AuthenticationInterface', '\\Drupal\\restful\\Annotation\\Authentication');
$this
->setCacheBackend($cache_backend, 'authentication_plugins');
$this
->alterInfo('authentication_plugin');
}