-
-
Notifications
You must be signed in to change notification settings - Fork 0
StandardsCommand
Executes the full suite of Fast Forward code standard checks.
This class MUST NOT be modified through inheritance and SHALL streamline code validation workflows.
- Full name:
\FastForward\DevTools\Console\Command\StandardsCommand - 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, \Psr\Log\LoggerInterface $logger): mixedParameters:
| Parameter | Type | Description |
|---|---|---|
$processBuilder |
\FastForward\DevTools\Process\ProcessBuilderInterface | |
$processQueue |
\FastForward\DevTools\Process\ProcessQueueInterface | |
$logger |
\Psr\Log\LoggerInterface |
Configures constraints and arguments for the collective standard runner.
protected configure(): voidprotected execute(\Symfony\Component\Console\Input\InputInterface $input, \Symfony\Component\Console\Output\OutputInterface $output): intParameters:
| Parameter | Type | Description |
|---|---|---|
$input |
\Symfony\Component\Console\Input\InputInterface | |
$output |
\Symfony\Component\Console\Output\OutputInterface |
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 |
Adds the standard cache control option to the current command.
protected addCacheOption(string $description): staticParameters:
| Parameter | Type | Description |
|---|---|---|
$description |
string | the cache option description |
Adds the standard cache directory option to the current command.
protected addCacheDirOption(string $description, string $default): staticParameters:
| Parameter | Type | Description |
|---|---|---|
$description |
string | the cache directory option description |
$default |
string | the command-specific default cache directory |
Resolves whether cache writes SHOULD be enabled for the current invocation.
protected isCacheEnabled(\Symfony\Component\Console\Input\InputInterface $input, bool $default = true): boolParameters:
| Parameter | Type | Description |
|---|---|---|
$input |
\Symfony\Component\Console\Input\InputInterface | the current command input |
$default |
bool | the command-specific default cache behavior when the option is omitted |
Returns the explicit cache flag that SHOULD be forwarded to nested commands.
protected resolveCacheArgument(\Symfony\Component\Console\Input\InputInterface $input): ?stringParameters:
| Parameter | Type | Description |
|---|---|---|
$input |
\Symfony\Component\Console\Input\InputInterface | the current command input |
Resolves a nested cache directory for a child command.
protected resolveCacheDirArgument(\Symfony\Component\Console\Input\InputInterface $input, string $path = ''): ?stringParameters:
| Parameter | Type | Description |
|---|---|---|
$input |
\Symfony\Component\Console\Input\InputInterface | the current command input |
$path |
string | the child cache path relative to the current command cache root |