public static function Composer::generateMetapackages in Drupal 10
Same name and namespace in other branches
- 8 composer/Composer.php \Drupal\Composer\Composer::generateMetapackages()
- 9 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\ComposerCode
public static function generateMetapackages(Event $event) : void {
$generator = new PackageGenerator();
$generator
->generate($event
->getIO(), getcwd());
}