You are here

public function Handler::requireWasCalled in Drupal 8

Same name and namespace in other branches
  1. 9 composer/Plugin/Scaffold/Handler.php \Drupal\Composer\Plugin\Scaffold\Handler::requireWasCalled()

Registers post-package events if the 'require' command was called.

File

composer/Plugin/Scaffold/Handler.php, line 88

Class

Handler
Core class of the plugin.

Namespace

Drupal\Composer\Plugin\Scaffold

Code

public function requireWasCalled() {

  // In order to differentiate between post-package events called after
  // 'composer require' vs. the same events called at other times, we will
  // only install our handler when a 'require' event is detected.
  $this->postPackageListeners[] = $this->manageAllowedPackages;
}