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

Breadcrumb

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

function EventDispatcher::__construct

Same name in this branch
  1. 11.1.x vendor/symfony/event-dispatcher/EventDispatcher.php \Symfony\Component\EventDispatcher\EventDispatcher::__construct()

Constructor.

Parameters

PartialComposer $composer The composer instance:

IOInterface $io The IOInterface instance:

ProcessExecutor $process:

File

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

Class

EventDispatcher
The Event Dispatcher.

Namespace

Composer\EventDispatcher

Code

public function __construct(PartialComposer $composer, IOInterface $io, ?ProcessExecutor $process = null) {
    $this->composer = $composer;
    $this->io = $io;
    $this->process = $process ?? new ProcessExecutor($io);
    $this->eventStack = [];
}

API Navigation

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