function VendorHardeningPlugin::onPostCmd

Same name in other branches
  1. 9 composer/Plugin/VendorHardening/VendorHardeningPlugin.php \Drupal\Composer\Plugin\VendorHardening\VendorHardeningPlugin::onPostCmd()
  2. 8.9.x composer/Plugin/VendorHardening/VendorHardeningPlugin.php \Drupal\Composer\Plugin\VendorHardening\VendorHardeningPlugin::onPostCmd()
  3. 10 composer/Plugin/VendorHardening/VendorHardeningPlugin.php \Drupal\Composer\Plugin\VendorHardening\VendorHardeningPlugin::onPostCmd()

POST_UPDATE_CMD and POST_INSTALL_CMD event handler.

Parameters

\Composer\Script\Event $event: The Composer event.

File

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

Class

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

Namespace

Drupal\Composer\Plugin\VendorHardening

Code

public function onPostCmd(Event $event) : void {
    $this->cleanAllPackages();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.