Steps to reproduce:

  1. Put zxcvbn-php library inside the module's lib directory.
  2. 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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

d.novikov created an issue. See original summary.

d.novikov’s picture

egontinno’s picture

Confirm #2 patch fix loading with xautoload.

fuerst’s picture

Status: Needs review » Reviewed & tested by the community

Patch fixes this for me, thanks!
(Using X Autoload 5.7.)