99use Neos \ContentRepository \Core \DimensionSpace \DimensionSpacePoint ;
1010use Neos \ContentRepository \Core \DimensionSpace \OriginDimensionSpacePoint ;
1111use Neos \ContentRepository \Core \Feature \NodeVariation \Command \CreateNodeVariant ;
12+ use Neos \ContentRepository \Core \Feature \Security \Exception \AccessDenied ;
1213use Neos \ContentRepository \Core \Projection \ContentGraph \AbsoluteNodePath ;
1314use Neos \ContentRepository \Core \Projection \ContentGraph \Filter \FindChildNodesFilter ;
1415use Neos \ContentRepository \Core \Projection \ContentGraph \Node ;
1819use Neos \ContentRepositoryRegistry \ContentRepositoryRegistry ;
1920use Neos \Flow \Cli \CommandController ;
2021use Neos \Flow \Annotations as Flow ;
22+ use Neos \Flow \Cli \Exception \StopCommandException ;
2123use Neos \Flow \Security \Context ;
2224
2325class 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