You are here

public function VendorHardeningPlugin::onPostPackageUpdate in Drupal 9

Same name and namespace in other branches
  1. 8 composer/Plugin/VendorHardening/VendorHardeningPlugin.php \Drupal\Composer\Plugin\VendorHardening\VendorHardeningPlugin::onPostPackageUpdate()
  2. 10 composer/Plugin/VendorHardening/VendorHardeningPlugin.php \Drupal\Composer\Plugin\VendorHardening\VendorHardeningPlugin::onPostPackageUpdate()

POST_PACKAGE_UPDATE event handler.

Parameters

\Composer\Installer\PackageEvent $event:

File

composer/Plugin/VendorHardening/VendorHardeningPlugin.php, line 152

Class

VendorHardeningPlugin
A Composer plugin to clean out your project's vendor directory.

Namespace

Drupal\Composer\Plugin\VendorHardening

Code

public function onPostPackageUpdate(PackageEvent $event) {
  $this
    ->cleanPackage($event
    ->getOperation()
    ->getTargetPackage());
}