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

Breadcrumb

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

function CommandEvent::__construct

Constructor.

Parameters

string $name The event name:

string $commandName The command name:

mixed[] $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/Plugin/CommandEvent.php, line 49

Class

CommandEvent
An event for all commands.

Namespace

Composer\Plugin

Code

public function __construct(string $name, string $commandName, InputInterface $input, OutputInterface $output, array $args = [], array $flags = []) {
    parent::__construct($name, $args, $flags);
    $this->commandName = $commandName;
    $this->input = $input;
    $this->output = $output;
}
RSS feed
Powered by Drupal