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

static 
generateMetapackages(Event $event)

Update metapackages whenever composer.lock is updated.

static 
ensureComposerVersion()

Ensure that the minimum required version of Composer is running.

static string
drupalVersionBranch()

Return the branch name the current Drupal version is associated with.

Details

static generateMetapackages(Event $event)

Update metapackages whenever composer.lock is updated.

Parameters

Event $event

static 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.

Return Value

string

A branch name, e.g. 8.9.x or 9.0.x.