Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. EventDispatcher.php

function EventDispatcher::dispatchInstallerEvent

Dispatch a installer event.

Parameters

string $eventName The constant in InstallerEvents:

bool $devMode Whether or not we are in dev mode:

bool $executeOperations True if operations will be executed, false in --dry-run:

Transaction $transaction The transaction contains the list of operations:

Return value

int return code of the executed script if any, for php scripts a false return value is changed to 1, anything else to 0

File

vendor/composer/composer/src/Composer/EventDispatcher/EventDispatcher.php, line 164

Class

EventDispatcher
The Event Dispatcher.

Namespace

Composer\EventDispatcher

Code

public function dispatchInstallerEvent(string $eventName, bool $devMode, bool $executeOperations, Transaction $transaction) : int {
    assert($this->composer instanceof Composer, new \LogicException('This should only be reached with a fully loaded Composer'));
    return $this->doDispatch(new InstallerEvent($eventName, $this->composer, $this->io, $devMode, $executeOperations, $transaction));
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal