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
- 3 sites report using this module
- Created by donquixote on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Development version: 7.x-1.x-dev updated 25 Sep 2019 at 22:23 UTC