Meta module to add as a dependency for Drupal 7 modules.
Indicates that your Drupal 7 module (the dependee) has classes in /src/ following the pattern known from Drupal 8.
It has an explicit dependency to registry_autoload, and then uses alternatives to also support registry_autoload.
Note that you still need to tell registry_autoload where to find your classes, to make this work.
Require this if you have a bias towards registry_autoload, but you don't want to force your users to choose between the two.
If your personal bias is towards xautoload, require psr4xa instead :)
; Require registry_autoload, but allow xautoload as an alternative.
dependencies[] = psr4ra
; Tell registry_autoload that class files are in /src/ following PSR-4 with namespace mapping as in Drupal 8.
; This will simply be ignored if xautoload is used instead.
registry_autoload[] = PSR-4
Drupal 8
This module would be pointless in D8. So there will be no D8 version.
Project information
- Project categories: Developer tools
- Ecosystem: Registry Autoload, X Autoload
5 sites report using this module
- Created by donquixote on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.
