Skip to content
Snippets Groups Projects
Commit df851957 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #1828616 follow-up by tstoeckler, Berdir: Allow AnnotatedClassDiscovery...

Issue #1828616 follow-up by tstoeckler, Berdir: Allow AnnotatedClassDiscovery to find plugins in Drupal\Component as well.
parent a5e363a5
No related branches found
No related tags found
No related merge requests found
......@@ -414,7 +414,7 @@ protected function buildContainer() {
$path = DRUPAL_ROOT . '/core/lib/Drupal/' . $parent_directory;
foreach (new \DirectoryIterator($path) as $component) {
if (!$component->isDot() && is_dir($component->getPathname() . '/Plugin')) {
$namespaces['Drupal\Core\\' . $component->getFilename()] = DRUPAL_ROOT . '/core/lib';
$namespaces['Drupal\\' . $parent_directory .'\\' . $component->getFilename()] = DRUPAL_ROOT . '/core/lib';
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment