-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
public __construct(\FastForward\DevTools\SelfUpdate\SelfUpdateRunnerInterface $selfUpdateRunner, \FastForward\DevTools\SelfUpdate\SelfUpdateScopeResolverInterface $scopeResolver, \Psr\Log\LoggerInterface $logger): mixedParameters:
| 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 |
Returns the command name and aliases declared through AsCommand.
public static getCommandNames(): list<string>- This method is static.
Configures the self-update command.
protected configure(): voidExecutes the Composer update flow.
protected execute(\Symfony\Component\Console\Input\InputInterface $input, \Symfony\Component\Console\Output\OutputInterface $output): intParameters:
| 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