-
-
Notifications
You must be signed in to change notification settings - Fork 0
HasJsonOption
github-actions edited this page Apr 22, 2026
·
1 revision
Provides the standard JSON output options used by DevTools commands.
- Full name:
\FastForward\DevTools\Console\Input\HasJsonOption
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 |