Skip to content

CopyResourceCommand

github-actions edited this page Apr 17, 2026 · 1 revision

Copies packaged or local resources into the consumer repository.


  • Full name: \FastForward\DevTools\Console\Command\CopyResourceCommand
  • 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 CopyResourceCommand instance.

public __construct(\FastForward\DevTools\Filesystem\FilesystemInterface $filesystem, \Symfony\Component\Config\FileLocatorInterface $fileLocator, \Symfony\Component\Finder\Finder $finder): mixed

Parameters:

Parameter Type Description
$filesystem \FastForward\DevTools\Filesystem\FilesystemInterface the filesystem used for copy operations
$fileLocator \Symfony\Component\Config\FileLocatorInterface the locator used to resolve source resources
$finder \Symfony\Component\Finder\Finder the finder used to iterate directory resources

configure

Configures source, target, and overwrite controls.

protected configure(): void

execute

Copies the requested resource.

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

Parameters:

Parameter Type Description
$input \Symfony\Component\Console\Input\InputInterface the input containing source and target paths
$output \Symfony\Component\Console\Output\OutputInterface the output used to report copy results

Return Value:

the command status code


Clone this wiki locally