Commit df851957 authored by webchick's avatar webchick

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
......@@ -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';
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment