Install

Works with Drupal: ^10 || ^11 || ^12

Using 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.install called the module's own src/Hook requirements class before the module's namespace is autoloadable during install. It now loads that file with require_once when the class cannot be autoloaded; the logic still lives once, in the Hook class.
  • composer.json requires league/oauth2-client ^2.0 again. 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.

Created by: flashwebcenter
Created on: 7 Oct 2026 at 02:00 UTC
Last updated: 7 Oct 2026 at 02:01 UTC
Bug fixes

Other releases