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\EventDispatcherCode
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));
}