Skip to content

ProxyCommand

github-actions edited this page Apr 28, 2026 · 1 revision

Adapts migrated Symfony commands to Composer's BaseCommand contract.


  • Full name: \FastForward\DevTools\Composer\Command\ProxyCommand
  • Parent class: BaseCommand
  • This class is marked as final and can't be subclassed
  • This class is a Final class

Methods

__construct

public __construct(\Symfony\Component\Console\Command\Command $command, list<string>|null $aliases = null): mixed

Parameters:

Parameter Type Description
$command \Symfony\Component\Console\Command\Command the Symfony command adapted for Composer plugin execution
$aliases list|null the optional alias list exposed to Composer

execute

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

protected execute(\Symfony\Component\Console\Input\InputInterface $input, \Symfony\Component\Console\Output\OutputInterface $output): int

Parameters:

Parameter Type Description
$input \Symfony\Component\Console\Input\InputInterface the Composer command input
$output \Symfony\Component\Console\Output\OutputInterface the Composer command output

Return Value:

the proxied command status code


Clone this wiki locally