function Composer::generateComponentPackages

Same name in other branches
  1. 9 composer/Composer.php \Drupal\Composer\Composer::generateComponentPackages()
  2. 11.x composer/Composer.php \Drupal\Composer\Composer::generateComponentPackages()

Update component packages whenever composer.lock is updated.

Parameters

\Composer\Script\Event $event: The Composer event.

File

composer/Composer.php, line 41

Class

Composer
Provides static functions for composer script events.

Namespace

Drupal\Composer

Code

public static function generateComponentPackages(Event $event) : void {
    $generator = new ComponentGenerator();
    $generator->generate($event, getcwd());
}

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