Skip to content

Commit

Permalink
TASK: Adjust to workspace aware commands
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsdesign committed Mar 14, 2024
1 parent 554879b commit 132dbd6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Classes/Domain/NodeCreation/NodeCreationCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
* Add a list of commands that are executed after the initial created command was run.
* This allows to create child-nodes and append other allowed commands.
*
* @var array<int|string, CreateNodeAggregateWithNode|SetNodeProperties|DisableNodeAggregate|EnableNodeAggregate|SetNodeReferences|CopyNodesRecursively>
* @var array<int,CreateNodeAggregateWithNode|SetNodeProperties|DisableNodeAggregate|EnableNodeAggregate|SetNodeReferences|CopyNodesRecursively>
*/
public array $additionalCommands;

Expand All @@ -68,7 +68,7 @@ private function __construct(
CreateNodeAggregateWithNode|SetNodeProperties|DisableNodeAggregate|EnableNodeAggregate|SetNodeReferences|CopyNodesRecursively ...$additionalCommands
) {
$this->first = $first;
$this->additionalCommands = $additionalCommands;
$this->additionalCommands = array_values($additionalCommands);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function handle(NodeCreationCommands $commands, NodeCreationElements $ele
) {
// a promoted element
$setReferencesCommands[] = SetNodeReferences::create(
$commands->first->contentStreamId,
$commands->first->workspaceName,
$commands->first->nodeAggregateId,
$commands->first->originDimensionSpacePoint,
ReferenceName::fromString($elementName),
Expand Down

0 comments on commit 132dbd6

Please sign in to comment.