-
-
Notifications
You must be signed in to change notification settings - Fork 0
LicenseCommand
github-actions edited this page Apr 17, 2026
·
1 revision
Generates and copies LICENSE files to projects.
This command generates a LICENSE file if one does not exist and a supported license is declared in composer.json.
- Full name:
\FastForward\DevTools\Console\Command\LicenseCommand - Parent class:
BaseCommand - This class is marked as final and can't be subclassed
- This class is a Final class
Creates a new LicenseCommand instance.
public __construct(\FastForward\DevTools\License\GeneratorInterface $generator, \FastForward\DevTools\Filesystem\FilesystemInterface $filesystem): mixedParameters:
| Parameter | Type | Description |
|---|---|---|
$generator |
\FastForward\DevTools\License\GeneratorInterface | the generator component |
$filesystem |
\FastForward\DevTools\Filesystem\FilesystemInterface | the filesystem component |
{@inheritDoc}
protected configure(): voidExecutes the license generation process.
protected execute(\Symfony\Component\Console\Input\InputInterface $input, \Symfony\Component\Console\Output\OutputInterface $output): intGenerates a LICENSE file if one does not exist and a supported license is declared in composer.json.
Parameters:
| Parameter | Type | Description |
|---|---|---|
$input |
\Symfony\Component\Console\Input\InputInterface | the input interface |
$output |
\Symfony\Component\Console\Output\OutputInterface | the output interface |
Return Value:
the status code