Skip to content

FundingCommand

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

Synchronizes funding metadata between composer.json and .github/FUNDING.yml.


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

Methods

__construct

Creates a new FundingCommand instance.

public __construct(\FastForward\DevTools\Filesystem\FilesystemInterface $filesystem, \FastForward\DevTools\Funding\ComposerFundingCodec $composerFundingCodec, \FastForward\DevTools\Funding\FundingYamlCodec $fundingYamlCodec, \FastForward\DevTools\Funding\FundingProfileMerger $fundingProfileMerger, \FastForward\DevTools\Resource\FileDiffer $fileDiffer, \FastForward\DevTools\Process\ProcessBuilderInterface $processBuilder, \FastForward\DevTools\Process\ProcessQueueInterface $processQueue): mixed

Parameters:

Parameter Type Description
$filesystem \FastForward\DevTools\Filesystem\FilesystemInterface the filesystem used to read and write funding metadata files
$composerFundingCodec \FastForward\DevTools\Funding\ComposerFundingCodec the codec used to parse and render Composer funding metadata
$fundingYamlCodec \FastForward\DevTools\Funding\FundingYamlCodec the codec used to parse and render GitHub funding YAML metadata
$fundingProfileMerger \FastForward\DevTools\Funding\FundingProfileMerger the merger used to synchronize normalized funding profiles
$fileDiffer \FastForward\DevTools\Resource\FileDiffer the differ used to summarize managed-file drift
$processBuilder \FastForward\DevTools\Process\ProcessBuilderInterface the process builder used to normalize composer.json after updates
$processQueue \FastForward\DevTools\Process\ProcessQueueInterface the process queue used to execute composer normalize

configure

Configures command options.

protected configure(): void

execute

Synchronizes funding metadata across Composer and GitHub files.

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 command input
$output \Symfony\Component\Console\Output\OutputInterface the command output

Return Value:

the command status code


Clone this wiki locally