function Composer::generateMetapackages
Same name in other branches
- 9 composer/Composer.php \Drupal\Composer\Composer::generateMetapackages()
- 8.9.x composer/Composer.php \Drupal\Composer\Composer::generateMetapackages()
- 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 30
Class
- Composer
- Provides static functions for composer script events.
Namespace
Drupal\ComposerCode
public static function generateMetapackages(Event $event) : void {
$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.