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