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

Breadcrumb

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

function PreCommandRunEvent::__construct

Constructor.

Parameters

string $name The event name:

string $command The command about to be executed:

Overrides Event::__construct

File

vendor/composer/composer/src/Composer/Plugin/PreCommandRunEvent.php, line 41

Class

PreCommandRunEvent
The pre command run event.

Namespace

Composer\Plugin

Code

public function __construct(string $name, InputInterface $input, string $command) {
    parent::__construct($name);
    $this->input = $input;
    $this->command = $command;
}
RSS feed
Powered by Drupal