public function FeedsPluginManager::__construct in Feeds 8.2
Constructs a FeedsPluginManager object.
Parameters
string $type: The plugin type, for example fetcher.
\Traversable $namespaces: An object that implements \Traversable which contains the root paths keyed by the corresponding namespace to look for plugin implementations.
File
- lib/
Drupal/ feeds/ Plugin/ FeedsPluginManager.php, line 29 - Contains \Drupal\feeds\Plugin\FeedsPluginManager.
Class
- FeedsPluginManager
- Manages feeds plugins.
Namespace
Drupal\feeds\PluginCode
public function __construct($type, \Traversable $namespaces) {
$this->discovery = new AnnotatedClassDiscovery("feeds/{$type}", $namespaces);
$this->discovery = new CacheDecorator($this->discovery, "feeds_{$type}:" . language(LANGUAGE_TYPE_INTERFACE)->langcode);
$this->factory = new DefaultFactory($this->discovery);
}