Issue #1828616 follow-up by tstoeckler, Berdir: Allow AnnotatedClassDiscovery to find plugins in Drupal\Component as well.

8.0.x
webchick 2013-05-03 22:31:02 -07:00
parent a5e363a58d
commit df8519574a
1 changed files with 1 additions and 1 deletions

View File

@ -414,7 +414,7 @@ class DrupalKernel extends Kernel implements DrupalKernelInterface {
$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';
}
}
}