-
-
Notifications
You must be signed in to change notification settings - Fork 0
CopyResourceCommand
github-actions edited this page Apr 22, 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 implements:
\FastForward\DevTools\Console\Command\LoggerAwareCommandInterface - This class is a Final class
Creates a new CopyResourceCommand instance.
public __construct(\FastForward\DevTools\Filesystem\FilesystemInterface $filesystem, \Symfony\Component\Config\FileLocatorInterface $fileLocator, \FastForward\DevTools\Filesystem\FinderFactoryInterface $finderFactory, \FastForward\DevTools\Resource\FileDiffer $fileDiffer, \Psr\Log\LoggerInterface $logger): 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 |
$finderFactory |
\FastForward\DevTools\Filesystem\FinderFactoryInterface | the factory used to create finders for directory resources |
$fileDiffer |
\FastForward\DevTools\Resource\FileDiffer | the service used to summarize overwrite changes |
$logger |
\Psr\Log\LoggerInterface | the output-aware logger |
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
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 |