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.
Steps to reproduce:
- Put zxcvbn-php library inside the module's lib directory.
- Visit module's configuration page or /admin/reports/status. The zxcvbn-php library is not recognized.
Suggested fix:
- Replace
$api->namespaceRoot('ZxcvbnPhp', 'lib/zxcvbn-php/src')
by$api->addPsr4('ZxcvbnPhp', 'lib/zxcvbn-php/src')
The patch is attached.
Comment | File | Size | Author |
---|---|---|---|
#2 | modify-hook-xautoload-to-use-psr4-2851550-0.patch | 430 bytes | d.novikov |
Comments
Comment #2
d.novikov CreditAttribution: d.novikov as a volunteer commentedComment #3
egontinno CreditAttribution: egontinno commentedConfirm #2 patch fix loading with xautoload.
Comment #4
fuerst CreditAttribution: fuerst commentedPatch fixes this for me, thanks!
(Using X Autoload 5.7.)