Install
Works with Drupal: ^10 || ^11 || ^12Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
40.74 KB
MD5: bbe5d29d32bc622effa5ca9ba4b7085e
SHA-1: cdca68e2b3c77d606390c49c78fcf16c8ee64497
SHA-256: 19d5a138e83f2b490919259d97f14f765f806253992f869bc04069e2576f9bbc
Download zip
62.03 KB
MD5: 88332468c0ddd1ba3faf7d468ac16f5f
SHA-1: 7c067cb432e7fe22c4b815fc8598cf7eed7bedae
SHA-256: d5355cd9a71b3fbb56fed4a7c6e2272f1c87d0f1a1c93612b870665ff761f647
Release notes
Fixes installing the module on Drupal 10 and Drupal 11.0–11.2 ("Class not found"), and restores the league/oauth2-client Composer dependency.
Who must update
- Every Drupal 10 and Drupal 11.0–11.2 site on 3.0.2, or planning to install it: enabling the module died with "Class not found".
- Every Composer-built site on 3.0.2: Composer did not install
league/oauth2-client, which the module's install check requires.
Fixes
- The install requirements check in
acquia_purge_varnish.installcalled the module's ownsrc/Hookrequirements class before the module's namespace is autoloadable during install. It now loads that file withrequire_oncewhen the class cannot be autoloaded; the logic still lives once, in the Hook class. composer.jsonrequiresleague/oauth2-client^2.0again. An earlier commit dropped it while the README still says Composer installs it.- Added
InstallRequirementsAutoloadTest, which removes the module namespace from the class loader and runs the install-phase check.
After updating
Run composer update drupal/acquia_purge_varnish --with-dependencies so the OAuth2 client is installed, then drush updb, then drush cr.