function Composer::generateMetapackages

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

Update metapackages whenever composer.lock is updated.

Parameters

\Composer\Script\Event $event:

File

composer/Composer.php, line 25

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) {
    $generator = new PackageGenerator();
    $generator->generate($event->getIO(), getcwd());
}

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