public function VendorHardeningPlugin::onPostPackageInstall in Drupal 9
Same name and namespace in other branches
- 8 composer/Plugin/VendorHardening/VendorHardeningPlugin.php \Drupal\Composer\Plugin\VendorHardening\VendorHardeningPlugin::onPostPackageInstall()
- 10 composer/Plugin/VendorHardening/VendorHardeningPlugin.php \Drupal\Composer\Plugin\VendorHardening\VendorHardeningPlugin::onPostPackageInstall()
POST_PACKAGE_INSTALL event handler.
Parameters
\Composer\Installer\PackageEvent $event:
File
- composer/
Plugin/ VendorHardening/ VendorHardeningPlugin.php, line 143
Class
- VendorHardeningPlugin
- A Composer plugin to clean out your project's vendor directory.
Namespace
Drupal\Composer\Plugin\VendorHardeningCode
public function onPostPackageInstall(PackageEvent $event) {
$this
->cleanPackage($event
->getOperation()
->getPackage());
}