ProxyCommand

Class
extends BaseCommand
Final: Yes

Adapts migrated Symfony commands to Composer's BaseCommand contract.

Table of Contents

Properties

 : Command

Methods

 : mixed
execute()

Executes the proxied Symfony command through Composer's command contract.

 : int
Properties

$command

Private Read-only
private Command $command
Methods

__construct()

Public
public __construct(Command  $command[, array<int, string>|null  $aliases = null]) : mixed
Parameters
$command : Command

Description

the Symfony command adapted for Composer plugin execution

$aliases : array<int, string>|null = null

Description

the optional alias list exposed to Composer

execute()

Protected

Executes the proxied Symfony command through Composer's command contract.

protected execute(InputInterface  $input, OutputInterface  $output) : int
Parameters
$input : InputInterface

Description

the Composer command input

$output : OutputInterface

Description

the Composer command output

Return values
int

Description

the proxied command status code