Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Follow-up to
#1971198: [policy] Drupal and PSR-0/PSR-4 Class Loading
#2033611: Port AnnotatedClassDiscovery to PSR-4, and make it agnostic of directory information.
#2058867: Consider introducing a native ClassLoader for performance and PSR-4
We want a script to easily move all module class files from their PSR-0 location to their new PSR-4 location.
This already existed in the Krautoload patch, so we can just pick it up from there.
Comment | File | Size | Author |
---|---|---|---|
#1 | D8-psr4-script-2083045-1.patch | 2.78 KB | donquixote |
Comments
Comment #1
donquixote CreditAttribution: donquixote commentedHere is the script.
Same thing on github:
https://github.com/donquixote/drupal/compare/8.x-psr4-script
Comment #2
webchickCommitted as part of #2083547: PSR-4: Putting it all together.