Skip to content

Commit 2b1c39f

Browse files
authored
Merge pull request #69 from crydotsnake/task/add-description-for-cli-command
TASK: Add PHPDoc description for translateCommand
2 parents 4f1d29d + 92eb6c4 commit 2b1c39f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Classes/Command/LostInTranslationCommandController.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use Neos\ContentRepository\Core\DimensionSpace\DimensionSpacePoint;
1010
use Neos\ContentRepository\Core\DimensionSpace\OriginDimensionSpacePoint;
1111
use Neos\ContentRepository\Core\Feature\NodeVariation\Command\CreateNodeVariant;
12+
use Neos\ContentRepository\Core\Feature\Security\Exception\AccessDenied;
1213
use Neos\ContentRepository\Core\Projection\ContentGraph\AbsoluteNodePath;
1314
use Neos\ContentRepository\Core\Projection\ContentGraph\Filter\FindChildNodesFilter;
1415
use Neos\ContentRepository\Core\Projection\ContentGraph\Node;
@@ -18,6 +19,7 @@
1819
use Neos\ContentRepositoryRegistry\ContentRepositoryRegistry;
1920
use Neos\Flow\Cli\CommandController;
2021
use Neos\Flow\Annotations as Flow;
22+
use Neos\Flow\Cli\Exception\StopCommandException;
2123
use Neos\Flow\Security\Context;
2224

2325
class LostInTranslationCommandController extends CommandController
@@ -31,6 +33,18 @@ class LostInTranslationCommandController extends CommandController
3133
#[Flow\Inject]
3234
public Context $securityContext;
3335

36+
/**
37+
* This command recursively copies content from the source to the target language dimension within the specified repository, workspace, and node path.
38+
*
39+
* @param string $source
40+
* @param string $target
41+
* @param string $contentRepository
42+
* @param string $workspace
43+
* @param string $nodePath
44+
* @return void
45+
* @throws AccessDenied
46+
* @throws StopCommandException
47+
*/
3448
public function translateCommand(string $source, string $target, string $contentRepository = 'default', string $workspace = 'live', string $nodePath = '/<Neos.Neos:Sites>'): void
3549
{
3650
$cr = $this->contentRepositoryRegistry->get(ContentRepositoryId::fromString($contentRepository));

0 commit comments

Comments
 (0)