function Handler::onPostPackageEvent

Same name in other branches
  1. 9 composer/Plugin/Scaffold/Handler.php \Drupal\Composer\Plugin\Scaffold\Handler::onPostPackageEvent()
  2. 8.9.x composer/Plugin/Scaffold/Handler.php \Drupal\Composer\Plugin\Scaffold\Handler::onPostPackageEvent()
  3. 11.x 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 103

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);
    }
}

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