-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Creates a new CopyResourceCommand instance.
public __construct(\FastForward\DevTools\Filesystem\FilesystemInterface $filesystem, \Symfony\Component\Config\FileLocatorInterface $fileLocator, \Symfony\Component\Finder\Finder $finder): mixedParameters:
| 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 |
Configures source, target, and overwrite controls.
protected configure(): voidCopies the requested resource.
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 containing source and target paths |
$output |
\Symfony\Component\Console\Output\OutputInterface | the output used to report copy results |
Return Value:
the command status code