Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
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 xautoload, and then uses alternatives to also support registry_autoload.
Note that you still need an additional declaration for registry_autoload.
Require this if you have a bias towards xautoload, but you don't want to force your users to choose between the two.
If your personal bias is towards registry_autoload, require psr4ra instead :)
; Require xautoload, but allow registry_autoload as an alternative.
dependencies[] = psr4xa
; 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
- Module categories: Developer tools
- Ecosystem: X Autoload, Registry Autoload
- 2 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.