public function VendorHardeningPlugin::onPostCmd in Drupal 10
Same name and namespace in other branches
- 8 composer/Plugin/VendorHardening/VendorHardeningPlugin.php \Drupal\Composer\Plugin\VendorHardening\VendorHardeningPlugin::onPostCmd()
- 9 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 112
Class
- VendorHardeningPlugin
- A Composer plugin to clean out your project's vendor directory.
Namespace
Drupal\Composer\Plugin\VendorHardeningCode
public function onPostCmd(Event $event) {
$this
->cleanAllPackages();
}