-
-
Notifications
You must be signed in to change notification settings - Fork 0
DependenciesCommand
github-actions edited this page Apr 22, 2026
·
1 revision
Orchestrates dependency analysis across the supported Composer analyzers.
This command MUST report missing, unused, and misplaced dependencies using a single, deterministic report that is friendly for local development and CI runs.
- Full name:
\FastForward\DevTools\Console\Command\DependenciesCommand - Parent class:
BaseCommand - This class is marked as final and can't be subclassed
- This class implements:
\FastForward\DevTools\Console\Command\LoggerAwareCommandInterface - This class is a Final class
public __construct(\FastForward\DevTools\Process\ProcessBuilderInterface $processBuilder, \FastForward\DevTools\Process\ProcessQueueInterface $processQueue, \Symfony\Component\Config\FileLocatorInterface $fileLocator, \Psr\Log\LoggerInterface $logger): mixedParameters:
| Parameter | Type | Description |
|---|---|---|
$processBuilder |
\FastForward\DevTools\Process\ProcessBuilderInterface | creates analyzer and upgrade processes |
$processQueue |
\FastForward\DevTools\Process\ProcessQueueInterface | executes queued processes |
$fileLocator |
\Symfony\Component\Config\FileLocatorInterface | resolves the dependency analyser configuration |
$logger |
\Psr\Log\LoggerInterface | writes command feedback |
Configures the dependency workflow options.
protected configure(): voidExecutes the dependency analysis workflow.
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 runtime command input |
$output |
\Symfony\Component\Console\Output\OutputInterface | the console output stream |
Return Value:
the command execution status code
Adds the standard JSON output options to the current command.
protected addJsonOption(): staticDetermines whether JSON output was requested.
protected isJsonOutput(\Symfony\Component\Console\Input\InputInterface $input): boolThe pretty-json flag SHALL imply JSON output.
Parameters:
| Parameter | Type | Description |
|---|---|---|
$input |
\Symfony\Component\Console\Input\InputInterface |
Determines whether pretty JSON output was requested.
protected isPrettyJsonOutput(\Symfony\Component\Console\Input\InputInterface $input): boolParameters:
| Parameter | Type | Description |
|---|---|---|
$input |
\Symfony\Component\Console\Input\InputInterface |