Skip to content

Commit 5fd8ab3

Browse files
committed
TASK: Adjust to "serializable commands"
Related: neos/neos-development-collection#5353 Related: neos/neos-development-collection#5348
1 parent ae08906 commit 5fd8ab3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Classes/Infrastructure/ContentRepository/ConflictsFactory.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414

1515
namespace Neos\Neos\Ui\Infrastructure\ContentRepository;
1616

17-
use Neos\ContentRepository\Core\CommandHandler\CommandInterface;
1817
use Neos\ContentRepository\Core\ContentRepository;
1918
use Neos\ContentRepository\Core\DimensionSpace\DimensionSpacePoint;
19+
use Neos\ContentRepository\Core\Feature\Common\RebasableToOtherWorkspaceInterface;
2020
use Neos\ContentRepository\Core\Feature\NodeCreation\Command\CreateNodeAggregateWithNode;
2121
use Neos\ContentRepository\Core\Feature\NodeCreation\Command\CreateNodeAggregateWithNodeAndSerializedProperties;
2222
use Neos\ContentRepository\Core\Feature\NodeDisabling\Command\DisableNodeAggregate;
@@ -139,7 +139,7 @@ private function createConflictFromCommandThatFailedDuringRebase(
139139
);
140140
}
141141

142-
private function extractNodeAggregateIdFromCommand(CommandInterface $command): ?NodeAggregateId
142+
private function extractNodeAggregateIdFromCommand(RebasableToOtherWorkspaceInterface $command): ?NodeAggregateId
143143
{
144144
return match (true) {
145145
$command instanceof MoveNodeAggregate,
@@ -163,7 +163,7 @@ private function extractNodeAggregateIdFromCommand(CommandInterface $command): ?
163163
}
164164

165165
private function acquireSubgraphFromCommand(
166-
CommandInterface $command,
166+
RebasableToOtherWorkspaceInterface $command,
167167
?NodeAggregateId $nodeAggregateIdForDimensionFallback
168168
): ?ContentSubgraphInterface {
169169
if ($this->workspace === null) {
@@ -248,7 +248,7 @@ private function createIconLabelForNode(Node $node): IconLabel
248248
}
249249

250250
private function createTypeOfChangeFromCommand(
251-
CommandInterface $command
251+
RebasableToOtherWorkspaceInterface $command
252252
): ?TypeOfChange {
253253
return match (true) {
254254
$command instanceof CreateNodeAggregateWithNode,

0 commit comments

Comments
 (0)