Updated: Comment #88
The class loader is quite difficult to work with. There are lots of loop holes that are taken that make it quite difficult to ensure its functionality.
Use Composer's autoload.php to handle the registration of third-party projects and Drupal's namespaces. It's future-proof as Composer is ever-evolving, and will handle any additional functionality we aim to provide. Instead of making the class loader swappable, allow the use of ClassLoader wrappers to keep the APC support.
- RTBC and commit
User interface changes
drupal_classloader()returns a Composer\Autoload\ClassLoader
Original report by Rob Loach
The class loader interface is a mess, and just needs to be simpler and cleaner.
- Load vendor/autoload.php in
- Ensure modules can still register additional namespaces
- Ensure Plugins is okay
PASSED: [[SimpleTest]]: [MySQL] 58,387 pass(es). View
PASSED: [[SimpleTest]]: [MySQL] 58,064 pass(es). View
PASSED: [[SimpleTest]]: [MySQL] 58,438 pass(es). View