-
-
Notifications
You must be signed in to change notification settings - Fork 0
DocsCommand
Generates the package API documentation through phpDocumentor.
The command prepares a temporary phpDocumentor configuration from the current package metadata, then delegates execution to the shared process queue so logging and grouped output stay consistent with the rest of the command surface.
- Full name:
\FastForward\DevTools\Console\Command\DocsCommand - 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
Creates a new DocsCommand instance.
public __construct(\FastForward\DevTools\Process\ProcessBuilderInterface $processBuilder, \FastForward\DevTools\Process\ProcessQueueInterface $processQueue, \Twig\Environment $renderer, \FastForward\DevTools\Filesystem\FilesystemInterface $filesystem, \FastForward\DevTools\Composer\Json\ComposerJsonInterface $composer, \Psr\Log\LoggerInterface $logger): mixedParameters:
| Parameter | Type | Description |
|---|---|---|
$processBuilder |
\FastForward\DevTools\Process\ProcessBuilderInterface | the process builder for executing phpDocumentor |
$processQueue |
\FastForward\DevTools\Process\ProcessQueueInterface | the process queue for managing execution |
$renderer |
\Twig\Environment | |
$filesystem |
\FastForward\DevTools\Filesystem\FilesystemInterface | the filesystem for handling file operations |
$composer |
\FastForward\DevTools\Composer\Json\ComposerJsonInterface | the composer.json handler for accessing project metadata |
$logger |
\Psr\Log\LoggerInterface | the output-aware logger |
Configures the command options used to generate API documentation.
protected configure(): voidGenerates the HTML API documentation for the configured source tree.
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 input details for the command |
$output |
\Symfony\Component\Console\Output\OutputInterface | the output mechanism for logging |
Return Value:
the final 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 |