Skip to content

SelfUpdateCommand

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

Updates the installed DevTools package through Composer.


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

Methods

__construct

public __construct(\FastForward\DevTools\SelfUpdate\SelfUpdateRunnerInterface $selfUpdateRunner, \FastForward\DevTools\SelfUpdate\SelfUpdateScopeResolverInterface $scopeResolver, \Psr\Log\LoggerInterface $logger): mixed

Parameters:

Parameter Type Description
$selfUpdateRunner \FastForward\DevTools\SelfUpdate\SelfUpdateRunnerInterface the runner that executes Composer's update command
$scopeResolver \FastForward\DevTools\SelfUpdate\SelfUpdateScopeResolverInterface resolves whether the active binary is globally installed
$logger \Psr\Log\LoggerInterface the output-aware logger

getCommandNames

Returns the command name and aliases declared through AsCommand.

public static getCommandNames(): list<string>
  • This method is static.

configure

Configures the self-update command.

protected configure(): void

execute

Executes the Composer update flow.

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