You are here

public static function Composer::generateMetapackages in Drupal 9

Same name and namespace in other branches
  1. 8 composer/Composer.php \Drupal\Composer\Composer::generateMetapackages()
  2. 10 composer/Composer.php \Drupal\Composer\Composer::generateMetapackages()

Update metapackages whenever composer.lock is updated.

Parameters

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

File

composer/Composer.php, line 28

Class

Composer
Provides static functions for composer script events. See also core/lib/Drupal/Composer/Composer.php, which contains similar scripts needed by projects that include drupal/core. Scripts that are only needed by drupal/drupal go here.

Namespace

Drupal\Composer

Code

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