Skip to content

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

Methods

__construct

Creates a new LicenseCommand instance.

public __construct(\FastForward\DevTools\License\GeneratorInterface $generator, \FastForward\DevTools\Filesystem\FilesystemInterface $filesystem): mixed

Parameters:

Parameter Type Description
$generator \FastForward\DevTools\License\GeneratorInterface the generator component
$filesystem \FastForward\DevTools\Filesystem\FilesystemInterface the filesystem component

configure

{@inheritDoc}

protected configure(): void

execute

Executes the license generation process.

protected execute(\Symfony\Component\Console\Input\InputInterface $input, \Symfony\Component\Console\Output\OutputInterface $output): int

Generates 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


Clone this wiki locally