-
-
Notifications
You must be signed in to change notification settings - Fork 0
DevTools
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
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): mixedThe 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 |
Returns the application-level input definition with DevTools runtime options.
protected getDefaultInputDefinition(): \Symfony\Component\Console\Input\InputDefinitionReturn Value:
the global application input definition
Runs the application after applying global runtime options.
public doRun(\Symfony\Component\Console\Input\InputInterface $input, \Symfony\Component\Console\Output\OutputInterface $output): intParameters:
| 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 DevTools instance from container.
public static create(): \FastForward\DevTools\Console\DevTools- This method is static.
Retrieves the shared DevTools service container.
public static getContainer(): \Psr\Container\ContainerInterface- This method is static.