You are here

public function Handler::onPostPackageEvent in Drupal 8

Same name and namespace in other branches
  1. 9 composer/Plugin/Scaffold/Handler.php \Drupal\Composer\Plugin\Scaffold\Handler::onPostPackageEvent()
  2. 10 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\Scaffold

Code

public function onPostPackageEvent(PackageEvent $event) {
  foreach ($this->postPackageListeners as $listener) {
    $listener
      ->event($event);
  }
}