Composer
class Composer (View source)
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.
Methods
Update metapackages whenever composer.lock is updated.
Set the version of Drupal; used in release process and by the test suite.
Set the stability of the template projects to match the Drupal version.
Ensure that the minimum required version of Composer is running.
Return the branch name the current Drupal version is associated with.
Return the list of subprojects of a given type.
Details
static void
generateMetapackages(Event $event)
Update metapackages whenever composer.lock is updated.
static void
setDrupalVersion(string $root, string $version)
Set the version of Drupal; used in release process and by the test suite.
static protected void
setTemplateProjectStability(string $root, string $version)
Set the stability of the template projects to match the Drupal version.
static void
ensureComposerVersion()
Ensure that the minimum required version of Composer is running.
Throw an exception if Composer is too old.
static string
drupalVersionBranch()
Return the branch name the current Drupal version is associated with.
static Finder
composerSubprojectPaths(string $root, string $subprojectType)
Return the list of subprojects of a given type.