Skip to content

DevTools

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

Wraps the fast-forward console tooling suite conceptually as an isolated application instance.

Extending the base application, it MUST provide default command injections safely.


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

Methods

__construct

Initializes the DevTools global context and dependency graph.

public __construct(\Symfony\Component\Console\CommandLoader\CommandLoaderInterface $commandLoader, \FastForward\DevTools\SelfUpdate\WorkingDirectorySwitcherInterface $workingDirectorySwitcher, \FastForward\DevTools\SelfUpdate\VersionCheckNotifierInterface $versionCheckNotifier, \FastForward\DevTools\SelfUpdate\SelfUpdateRunnerInterface $selfUpdateRunner, \FastForward\DevTools\SelfUpdate\SelfUpdateScopeResolverInterface $selfUpdateScopeResolver, \FastForward\DevTools\Environment\EnvironmentInterface $environment): mixed

The method MUST define default configurations and MAY accept an explicit command provider. It SHALL instruct the runner to treat the standards command generically as its default endpoint.

Parameters:

Parameter Type Description
$commandLoader \Symfony\Component\Console\CommandLoader\CommandLoaderInterface the command loader responsible for providing command instances
$workingDirectorySwitcher \FastForward\DevTools\SelfUpdate\WorkingDirectorySwitcherInterface switches the process working directory
$versionCheckNotifier \FastForward\DevTools\SelfUpdate\VersionCheckNotifierInterface emits non-blocking version freshness warnings
$selfUpdateRunner \FastForward\DevTools\SelfUpdate\SelfUpdateRunnerInterface runs explicit or automatic self-update flows
$selfUpdateScopeResolver \FastForward\DevTools\SelfUpdate\SelfUpdateScopeResolverInterface resolves whether the active binary is global
$environment \FastForward\DevTools\Environment\EnvironmentInterface reads environment flags for optional auto-update behavior

getDefaultInputDefinition

Returns the application-level input definition with DevTools runtime options.

protected getDefaultInputDefinition(): \Symfony\Component\Console\Input\InputDefinition

Return Value:

the global application input definition


doRun

Runs the application after applying global runtime options.

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

Parameters:

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

Return Value:

the application status code


create

Create DevTools instance from container.

public static create(): \FastForward\DevTools\Console\DevTools
  • This method is static.

getContainer

Retrieves the shared DevTools service container.

public static getContainer(): \Psr\Container\ContainerInterface
  • This method is static.

Clone this wiki locally