Constructs an AnnotatedClassDiscovery object.
string $subdir: The plugin's subdirectory, for example views/filter.
\Traversable $root_namespaces: An object that implements \Traversable which contains the root paths keyed by the corresponding namespace to look for plugin implementations, \Plugin\$subdir will be appended to each namespace.
array $annotation_namespaces: (optional) The namespaces of classes that can be used as annotations. Defaults to an empty array.
string $plugin_definition_annotation_name: (optional) The name of the annotation that contains the plugin definition. Defaults to 'Drupal\Component\Annotation\Plugin'.
Overrides AnnotatedClassDiscovery::__construct
function __construct($subdir, \Traversable $root_namespaces, $annotation_namespaces = array(), $plugin_definition_annotation_name = 'Drupal\\Component\\Annotation\\Plugin') {
$this->subdir = str_replace('/', '\\', $subdir);
$this->rootNamespacesIterator = $root_namespaces;
$annotation_namespaces += array(
'Drupal\\Component\\Annotation' => DRUPAL_ROOT . '/core/lib',
'Drupal\\Core\\Annotation' => DRUPAL_ROOT . '/core/lib',
);
$plugin_namespaces = array();
parent::__construct($plugin_namespaces, $annotation_namespaces, $plugin_definition_annotation_name);
}