14
14
15
15
namespace Neos \Neos \Ui \Infrastructure \ContentRepository ;
16
16
17
- use Neos \ContentRepository \Core \CommandHandler \CommandInterface ;
18
17
use Neos \ContentRepository \Core \ContentRepository ;
19
18
use Neos \ContentRepository \Core \DimensionSpace \DimensionSpacePoint ;
19
+ use Neos \ContentRepository \Core \Feature \Common \RebasableToOtherWorkspaceInterface ;
20
20
use Neos \ContentRepository \Core \Feature \NodeCreation \Command \CreateNodeAggregateWithNode ;
21
21
use Neos \ContentRepository \Core \Feature \NodeCreation \Command \CreateNodeAggregateWithNodeAndSerializedProperties ;
22
22
use Neos \ContentRepository \Core \Feature \NodeDisabling \Command \DisableNodeAggregate ;
@@ -139,7 +139,7 @@ private function createConflictFromCommandThatFailedDuringRebase(
139
139
);
140
140
}
141
141
142
- private function extractNodeAggregateIdFromCommand (CommandInterface $ command ): ?NodeAggregateId
142
+ private function extractNodeAggregateIdFromCommand (RebasableToOtherWorkspaceInterface $ command ): ?NodeAggregateId
143
143
{
144
144
return match (true ) {
145
145
$ command instanceof MoveNodeAggregate,
@@ -163,7 +163,7 @@ private function extractNodeAggregateIdFromCommand(CommandInterface $command): ?
163
163
}
164
164
165
165
private function acquireSubgraphFromCommand (
166
- CommandInterface $ command ,
166
+ RebasableToOtherWorkspaceInterface $ command ,
167
167
?NodeAggregateId $ nodeAggregateIdForDimensionFallback
168
168
): ?ContentSubgraphInterface {
169
169
if ($ this ->workspace === null ) {
@@ -248,7 +248,7 @@ private function createIconLabelForNode(Node $node): IconLabel
248
248
}
249
249
250
250
private function createTypeOfChangeFromCommand (
251
- CommandInterface $ command
251
+ RebasableToOtherWorkspaceInterface $ command
252
252
): ?TypeOfChange {
253
253
return match (true ) {
254
254
$ command instanceof CreateNodeAggregateWithNode,
0 commit comments