Add DrupalKernel->getModuleNamespacesPsr4(), to get module namespaces with PSR-4 directories.
AnnotatedClassDiscovery with PSR-4 style directories.
Port discovery of test classes to PSR-4.
phpunit exclude folders to respect new PSR-4 paths.
autoload: Create a Drupal-specific ClassLoader, and use it instead of the one provided by Composer.
For the start, this is simply a copy of Composer's ClassLoader.
Use a post-autoload-dump script registered in composer.json, to replace the core/vendor/autoload.php with a Drupal-specific one.
autoload: Switch our ClassLoader fork to Composer's PSR-4 ClassLoader as proposed in https://github.com/composer/composer/pull/2121/files
autoload: Register modules as PSR-4 instead of PSR-0, without moving the classes. Allow for multiple paths per prefix. Register 3 directories per module namespace:
- ../lib/Drupal/(modulename)
- ../lib
This will be cleaned up later.
autoload: register modules as PSR-4 in tests/bootstrap.php
autoload: Register core namespaces as PSR-4
autoload: Use a loader with additional predictor character for PSR-4. Leave PSR-0 unchanged.
Introduce a script to move module-provided class files to their new PSR-4 location.