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\PluginCode
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;
}