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

Breadcrumb

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

function Event::__construct

Same name in this branch
  1. 11.1.x vendor/open-telemetry/sdk/Trace/Event.php \OpenTelemetry\SDK\Trace\Event::__construct()
  2. 11.1.x vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Trace/V1/Span/Event.php \Opentelemetry\Proto\Trace\V1\Span\Event::__construct()
  3. 11.1.x vendor/composer/composer/src/Composer/EventDispatcher/Event.php \Composer\EventDispatcher\Event::__construct()

Constructor.

Parameters

string $name The event name:

Composer $composer The composer object:

IOInterface $io The IOInterface object:

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

array<string|int|float|bool|null> $args Arguments passed by the user:

mixed[] $flags Optional flags to pass data not as argument:

Overrides Event::__construct

File

vendor/composer/composer/src/Composer/Script/Event.php, line 57

Class

Event
The script event class

Namespace

Composer\Script

Code

public function __construct(string $name, Composer $composer, IOInterface $io, bool $devMode = false, array $args = [], array $flags = []) {
    parent::__construct($name, $args, $flags);
    $this->composer = $composer;
    $this->io = $io;
    $this->devMode = $devMode;
}

API Navigation

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