public function Handler::onPostPackageEvent in Drupal 9
Same name and namespace in other branches
- 8 composer/Plugin/Scaffold/Handler.php \Drupal\Composer\Plugin\Scaffold\Handler::onPostPackageEvent()
Posts package command event.
We want to detect packages 'require'd that have scaffold files, but are not yet allowed in the top-level composer.json file.
Parameters
\Composer\Installer\PackageEvent $event: Composer package event sent on install/update/remove.
File
- composer/
Plugin/ Scaffold/ Handler.php, line 104
Class
- Handler
- Core class of the plugin.
Namespace
Drupal\Composer\Plugin\ScaffoldCode
public function onPostPackageEvent(PackageEvent $event) {
foreach ($this->postPackageListeners as $listener) {
$listener
->event($event);
}
}