From fd1c8fc10f5eff90edf1750282207983e837ee62 Mon Sep 17 00:00:00 2001 From: mhsdesign <85400359+mhsdesign@users.noreply.github.com> Date: Fri, 8 Nov 2024 17:18:03 +0100 Subject: [PATCH] TASK: Rename `CommandInterface` to `PublicCommandInterface` --- .../Classes/CommandHandler/CommandBus.php | 2 +- .../Classes/CommandHandler/CommandHandlerInterface.php | 4 ++-- .../{CommandInterface.php => PublicCommandInterface.php} | 2 +- Neos.ContentRepository.Core/Classes/ContentRepository.php | 6 +++--- .../Feature/Common/RebasableToOtherWorkspaceInterface.php | 4 ++-- .../Command/AddDimensionShineThrough.php | 4 ++-- .../Command/MoveDimensionSpacePoint.php | 4 ++-- .../DimensionSpaceCommandHandler.php | 6 +++--- .../Classes/Feature/NodeAggregateCommandHandler.php | 6 +++--- .../NodeCreation/Command/CreateNodeAggregateWithNode.php | 4 ++-- .../Feature/NodeDisabling/Command/DisableNodeAggregate.php | 4 ++-- .../Feature/NodeDisabling/Command/EnableNodeAggregate.php | 4 ++-- .../NodeDuplication/Command/CopyNodesRecursively.php | 4 ++-- .../NodeDuplication/NodeDuplicationCommandHandler.php | 6 +++--- .../Feature/NodeModification/Command/SetNodeProperties.php | 4 ++-- .../Classes/Feature/NodeMove/Command/MoveNodeAggregate.php | 4 ++-- .../Feature/NodeReferencing/Command/SetNodeReferences.php | 4 ++-- .../Feature/NodeRemoval/Command/RemoveNodeAggregate.php | 4 ++-- .../NodeRenaming/Command/ChangeNodeAggregateName.php | 4 ++-- .../NodeTypeChange/Command/ChangeNodeAggregateType.php | 4 ++-- .../Feature/NodeVariation/Command/CreateNodeVariant.php | 4 ++-- .../Command/CreateRootNodeAggregateWithNode.php | 4 ++-- .../Command/UpdateRootNodeAggregateDimensions.php | 4 ++-- .../Classes/Feature/SubtreeTagging/Command/TagSubtree.php | 4 ++-- .../Classes/Feature/SubtreeTagging/Command/UntagSubtree.php | 4 ++-- .../Classes/Feature/WorkspaceCommandHandler.php | 6 +++--- .../WorkspaceCreation/Command/CreateRootWorkspace.php | 4 ++-- .../Feature/WorkspaceCreation/Command/CreateWorkspace.php | 4 ++-- .../WorkspaceModification/Command/ChangeBaseWorkspace.php | 4 ++-- .../WorkspaceModification/Command/DeleteWorkspace.php | 4 ++-- .../Command/DiscardIndividualNodesFromWorkspace.php | 4 ++-- .../WorkspacePublication/Command/DiscardWorkspace.php | 4 ++-- .../Command/PublishIndividualNodesFromWorkspace.php | 4 ++-- .../WorkspacePublication/Command/PublishWorkspace.php | 4 ++-- .../Feature/WorkspaceRebase/Command/RebaseWorkspace.php | 4 ++-- 35 files changed, 73 insertions(+), 73 deletions(-) rename Neos.ContentRepository.Core/Classes/CommandHandler/{CommandInterface.php => PublicCommandInterface.php} (89%) diff --git a/Neos.ContentRepository.Core/Classes/CommandHandler/CommandBus.php b/Neos.ContentRepository.Core/Classes/CommandHandler/CommandBus.php index 5621e17fd2d..5f39a7606c3 100644 --- a/Neos.ContentRepository.Core/Classes/CommandHandler/CommandBus.php +++ b/Neos.ContentRepository.Core/Classes/CommandHandler/CommandBus.php @@ -32,7 +32,7 @@ public function __construct( /** * @return EventsToPublish|\Generator */ - public function handle(CommandInterface|RebasableToOtherWorkspaceInterface $command): EventsToPublish|\Generator + public function handle(PublicCommandInterface|RebasableToOtherWorkspaceInterface $command): EventsToPublish|\Generator { // multiple handlers must not handle the same command foreach ($this->handlers as $handler) { diff --git a/Neos.ContentRepository.Core/Classes/CommandHandler/CommandHandlerInterface.php b/Neos.ContentRepository.Core/Classes/CommandHandler/CommandHandlerInterface.php index 93cba7111ef..033ddfb485e 100644 --- a/Neos.ContentRepository.Core/Classes/CommandHandler/CommandHandlerInterface.php +++ b/Neos.ContentRepository.Core/Classes/CommandHandler/CommandHandlerInterface.php @@ -16,7 +16,7 @@ */ interface CommandHandlerInterface { - public function canHandle(CommandInterface|RebasableToOtherWorkspaceInterface $command): bool; + public function canHandle(PublicCommandInterface|RebasableToOtherWorkspaceInterface $command): bool; /** * "simple" command handlers return EventsToPublish directly @@ -26,5 +26,5 @@ public function canHandle(CommandInterface|RebasableToOtherWorkspaceInterface $c * * @return EventsToPublish|\Generator */ - public function handle(CommandInterface|RebasableToOtherWorkspaceInterface $command, CommandHandlingDependencies $commandHandlingDependencies): EventsToPublish|\Generator; + public function handle(PublicCommandInterface|RebasableToOtherWorkspaceInterface $command, CommandHandlingDependencies $commandHandlingDependencies): EventsToPublish|\Generator; } diff --git a/Neos.ContentRepository.Core/Classes/CommandHandler/CommandInterface.php b/Neos.ContentRepository.Core/Classes/CommandHandler/PublicCommandInterface.php similarity index 89% rename from Neos.ContentRepository.Core/Classes/CommandHandler/CommandInterface.php rename to Neos.ContentRepository.Core/Classes/CommandHandler/PublicCommandInterface.php index dcd162afb10..cad5d4fb72d 100644 --- a/Neos.ContentRepository.Core/Classes/CommandHandler/CommandInterface.php +++ b/Neos.ContentRepository.Core/Classes/CommandHandler/PublicCommandInterface.php @@ -9,6 +9,6 @@ * * @internal sealed interface. Custom commands cannot be handled and are no extension point! */ -interface CommandInterface +interface PublicCommandInterface { } diff --git a/Neos.ContentRepository.Core/Classes/ContentRepository.php b/Neos.ContentRepository.Core/Classes/ContentRepository.php index f474dda8191..e4f3b9e4b47 100644 --- a/Neos.ContentRepository.Core/Classes/ContentRepository.php +++ b/Neos.ContentRepository.Core/Classes/ContentRepository.php @@ -15,7 +15,7 @@ namespace Neos\ContentRepository\Core; use Neos\ContentRepository\Core\CommandHandler\CommandBus; -use Neos\ContentRepository\Core\CommandHandler\CommandInterface; +use Neos\ContentRepository\Core\CommandHandler\PublicCommandInterface; use Neos\ContentRepository\Core\Dimension\ContentDimensionSourceInterface; use Neos\ContentRepository\Core\DimensionSpace\InterDimensionalVariationGraph; use Neos\ContentRepository\Core\EventStore\EventNormalizer; @@ -90,9 +90,9 @@ public function __construct( /** * The only API to send commands (mutation intentions) to the system. * - * @param CommandInterface $command + * @param PublicCommandInterface $command */ - public function handle(CommandInterface $command): void + public function handle(PublicCommandInterface $command): void { // the commands only calculate which events they want to have published, but do not do the // publishing themselves diff --git a/Neos.ContentRepository.Core/Classes/Feature/Common/RebasableToOtherWorkspaceInterface.php b/Neos.ContentRepository.Core/Classes/Feature/Common/RebasableToOtherWorkspaceInterface.php index 7a33844a0ac..ec9b14c6cf2 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/Common/RebasableToOtherWorkspaceInterface.php +++ b/Neos.ContentRepository.Core/Classes/Feature/Common/RebasableToOtherWorkspaceInterface.php @@ -19,10 +19,10 @@ /** * Common (marker) interface for all **commands** that need to be serialized for rebasing to other workspaces * - * If the api command {@see CommandInterface} is serializable on its own it will directly implement this interface. + * If the api command {@see PublicCommandInterface} is serializable on its own it will directly implement this interface. * For complex commands a serialized counterpart - which is not api - will be build which implements this interface. * - * During a rebase, the command (either the original {@see CommandInterface} or its serialized counterpart) will be deserialized + * During a rebase, the command (either the original {@see PublicCommandInterface} or its serialized counterpart) will be deserialized * from array {@see SerializedCommandInterface::fromArray()} and reapplied via the {@see CommandSimulator} * * Reminder: a rebase can fail, because the target content stream might contain conflicting changes. diff --git a/Neos.ContentRepository.Core/Classes/Feature/DimensionSpaceAdjustment/Command/AddDimensionShineThrough.php b/Neos.ContentRepository.Core/Classes/Feature/DimensionSpaceAdjustment/Command/AddDimensionShineThrough.php index 936505d278d..7d4d35dc436 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/DimensionSpaceAdjustment/Command/AddDimensionShineThrough.php +++ b/Neos.ContentRepository.Core/Classes/Feature/DimensionSpaceAdjustment/Command/AddDimensionShineThrough.php @@ -14,7 +14,7 @@ namespace Neos\ContentRepository\Core\Feature\DimensionSpaceAdjustment\Command; -use Neos\ContentRepository\Core\CommandHandler\CommandInterface; +use Neos\ContentRepository\Core\CommandHandler\PublicCommandInterface; use Neos\ContentRepository\Core\DimensionSpace\DimensionSpacePoint; use Neos\ContentRepository\Core\Feature\Common\RebasableToOtherWorkspaceInterface; use Neos\ContentRepository\Core\SharedModel\Workspace\ContentStreamId; @@ -34,7 +34,7 @@ * @api commands are the write-API of the ContentRepository */ final readonly class AddDimensionShineThrough implements - CommandInterface, + PublicCommandInterface, \JsonSerializable, RebasableToOtherWorkspaceInterface { diff --git a/Neos.ContentRepository.Core/Classes/Feature/DimensionSpaceAdjustment/Command/MoveDimensionSpacePoint.php b/Neos.ContentRepository.Core/Classes/Feature/DimensionSpaceAdjustment/Command/MoveDimensionSpacePoint.php index 498ba261e49..09cccdbdf63 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/DimensionSpaceAdjustment/Command/MoveDimensionSpacePoint.php +++ b/Neos.ContentRepository.Core/Classes/Feature/DimensionSpaceAdjustment/Command/MoveDimensionSpacePoint.php @@ -14,7 +14,7 @@ * source code. */ -use Neos\ContentRepository\Core\CommandHandler\CommandInterface; +use Neos\ContentRepository\Core\CommandHandler\PublicCommandInterface; use Neos\ContentRepository\Core\DimensionSpace\DimensionSpacePoint; use Neos\ContentRepository\Core\Feature\Common\RebasableToOtherWorkspaceInterface; use Neos\ContentRepository\Core\SharedModel\Workspace\WorkspaceName; @@ -30,7 +30,7 @@ */ final readonly class MoveDimensionSpacePoint implements \JsonSerializable, - CommandInterface, + PublicCommandInterface, RebasableToOtherWorkspaceInterface { /** diff --git a/Neos.ContentRepository.Core/Classes/Feature/DimensionSpaceAdjustment/DimensionSpaceCommandHandler.php b/Neos.ContentRepository.Core/Classes/Feature/DimensionSpaceAdjustment/DimensionSpaceCommandHandler.php index 72695af98c7..bec98e8e885 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/DimensionSpaceAdjustment/DimensionSpaceCommandHandler.php +++ b/Neos.ContentRepository.Core/Classes/Feature/DimensionSpaceAdjustment/DimensionSpaceCommandHandler.php @@ -16,7 +16,7 @@ use Neos\ContentRepository\Core\CommandHandler\CommandHandlerInterface; use Neos\ContentRepository\Core\CommandHandler\CommandHandlingDependencies; -use Neos\ContentRepository\Core\CommandHandler\CommandInterface; +use Neos\ContentRepository\Core\CommandHandler\PublicCommandInterface; use Neos\ContentRepository\Core\ContentRepository; use Neos\ContentRepository\Core\DimensionSpace\ContentDimensionZookeeper; use Neos\ContentRepository\Core\DimensionSpace\DimensionSpacePoint; @@ -49,12 +49,12 @@ public function __construct( ) { } - public function canHandle(CommandInterface|RebasableToOtherWorkspaceInterface $command): bool + public function canHandle(PublicCommandInterface|RebasableToOtherWorkspaceInterface $command): bool { return method_exists($this, 'handle' . (new \ReflectionClass($command))->getShortName()); } - public function handle(CommandInterface|RebasableToOtherWorkspaceInterface $command, CommandHandlingDependencies $commandHandlingDependencies): EventsToPublish + public function handle(PublicCommandInterface|RebasableToOtherWorkspaceInterface $command, CommandHandlingDependencies $commandHandlingDependencies): EventsToPublish { /** @phpstan-ignore-next-line */ return match ($command::class) { diff --git a/Neos.ContentRepository.Core/Classes/Feature/NodeAggregateCommandHandler.php b/Neos.ContentRepository.Core/Classes/Feature/NodeAggregateCommandHandler.php index f014440718c..8f748b6e034 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/NodeAggregateCommandHandler.php +++ b/Neos.ContentRepository.Core/Classes/Feature/NodeAggregateCommandHandler.php @@ -16,7 +16,7 @@ use Neos\ContentRepository\Core\CommandHandler\CommandHandlerInterface; use Neos\ContentRepository\Core\CommandHandler\CommandHandlingDependencies; -use Neos\ContentRepository\Core\CommandHandler\CommandInterface; +use Neos\ContentRepository\Core\CommandHandler\PublicCommandInterface; use Neos\ContentRepository\Core\ContentRepository; use Neos\ContentRepository\Core\DimensionSpace; use Neos\ContentRepository\Core\DimensionSpace\DimensionSpacePointSet; @@ -87,12 +87,12 @@ public function __construct( ) { } - public function canHandle(CommandInterface|RebasableToOtherWorkspaceInterface $command): bool + public function canHandle(PublicCommandInterface|RebasableToOtherWorkspaceInterface $command): bool { return method_exists($this, 'handle' . (new \ReflectionClass($command))->getShortName()); } - public function handle(CommandInterface|RebasableToOtherWorkspaceInterface $command, CommandHandlingDependencies $commandHandlingDependencies): EventsToPublish + public function handle(PublicCommandInterface|RebasableToOtherWorkspaceInterface $command, CommandHandlingDependencies $commandHandlingDependencies): EventsToPublish { /** @phpstan-ignore-next-line */ return match ($command::class) { diff --git a/Neos.ContentRepository.Core/Classes/Feature/NodeCreation/Command/CreateNodeAggregateWithNode.php b/Neos.ContentRepository.Core/Classes/Feature/NodeCreation/Command/CreateNodeAggregateWithNode.php index 4aac2bb8761..8d0ae541552 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/NodeCreation/Command/CreateNodeAggregateWithNode.php +++ b/Neos.ContentRepository.Core/Classes/Feature/NodeCreation/Command/CreateNodeAggregateWithNode.php @@ -14,7 +14,7 @@ namespace Neos\ContentRepository\Core\Feature\NodeCreation\Command; -use Neos\ContentRepository\Core\CommandHandler\CommandInterface; +use Neos\ContentRepository\Core\CommandHandler\PublicCommandInterface; use Neos\ContentRepository\Core\DimensionSpace\OriginDimensionSpacePoint; use Neos\ContentRepository\Core\Feature\NodeCreation\Dto\NodeAggregateIdsByNodePaths; use Neos\ContentRepository\Core\Feature\NodeModification\Dto\PropertyValuesToWrite; @@ -33,7 +33,7 @@ * * @api commands are the write-API of the ContentRepository */ -final readonly class CreateNodeAggregateWithNode implements CommandInterface +final readonly class CreateNodeAggregateWithNode implements PublicCommandInterface { /** * @param WorkspaceName $workspaceName The workspace in which the create operation is to be performed diff --git a/Neos.ContentRepository.Core/Classes/Feature/NodeDisabling/Command/DisableNodeAggregate.php b/Neos.ContentRepository.Core/Classes/Feature/NodeDisabling/Command/DisableNodeAggregate.php index f92f938df9c..0928b2a6bfd 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/NodeDisabling/Command/DisableNodeAggregate.php +++ b/Neos.ContentRepository.Core/Classes/Feature/NodeDisabling/Command/DisableNodeAggregate.php @@ -14,7 +14,7 @@ namespace Neos\ContentRepository\Core\Feature\NodeDisabling\Command; -use Neos\ContentRepository\Core\CommandHandler\CommandInterface; +use Neos\ContentRepository\Core\CommandHandler\PublicCommandInterface; use Neos\ContentRepository\Core\DimensionSpace\DimensionSpacePoint; use Neos\ContentRepository\Core\Feature\Common\MatchableWithNodeIdToPublishOrDiscardInterface; use Neos\ContentRepository\Core\Feature\Common\RebasableToOtherWorkspaceInterface; @@ -30,7 +30,7 @@ * @api commands are the write-API of the ContentRepository */ final readonly class DisableNodeAggregate implements - CommandInterface, + PublicCommandInterface, \JsonSerializable, MatchableWithNodeIdToPublishOrDiscardInterface, RebasableToOtherWorkspaceInterface diff --git a/Neos.ContentRepository.Core/Classes/Feature/NodeDisabling/Command/EnableNodeAggregate.php b/Neos.ContentRepository.Core/Classes/Feature/NodeDisabling/Command/EnableNodeAggregate.php index de0ad11d57d..c545a46fc90 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/NodeDisabling/Command/EnableNodeAggregate.php +++ b/Neos.ContentRepository.Core/Classes/Feature/NodeDisabling/Command/EnableNodeAggregate.php @@ -14,7 +14,7 @@ namespace Neos\ContentRepository\Core\Feature\NodeDisabling\Command; -use Neos\ContentRepository\Core\CommandHandler\CommandInterface; +use Neos\ContentRepository\Core\CommandHandler\PublicCommandInterface; use Neos\ContentRepository\Core\DimensionSpace\DimensionSpacePoint; use Neos\ContentRepository\Core\Feature\Common\MatchableWithNodeIdToPublishOrDiscardInterface; use Neos\ContentRepository\Core\Feature\Common\RebasableToOtherWorkspaceInterface; @@ -30,7 +30,7 @@ * @api commands are the write-API of the ContentRepository */ final readonly class EnableNodeAggregate implements - CommandInterface, + PublicCommandInterface, \JsonSerializable, MatchableWithNodeIdToPublishOrDiscardInterface, RebasableToOtherWorkspaceInterface diff --git a/Neos.ContentRepository.Core/Classes/Feature/NodeDuplication/Command/CopyNodesRecursively.php b/Neos.ContentRepository.Core/Classes/Feature/NodeDuplication/Command/CopyNodesRecursively.php index ba31a07c601..801150f7627 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/NodeDuplication/Command/CopyNodesRecursively.php +++ b/Neos.ContentRepository.Core/Classes/Feature/NodeDuplication/Command/CopyNodesRecursively.php @@ -14,7 +14,7 @@ namespace Neos\ContentRepository\Core\Feature\NodeDuplication\Command; -use Neos\ContentRepository\Core\CommandHandler\CommandInterface; +use Neos\ContentRepository\Core\CommandHandler\PublicCommandInterface; use Neos\ContentRepository\Core\DimensionSpace\OriginDimensionSpacePoint; use Neos\ContentRepository\Core\Feature\Common\MatchableWithNodeIdToPublishOrDiscardInterface; use Neos\ContentRepository\Core\Feature\Common\RebasableToOtherWorkspaceInterface; @@ -38,7 +38,7 @@ * @api commands are the write-API of the ContentRepository */ final readonly class CopyNodesRecursively implements - CommandInterface, + PublicCommandInterface, \JsonSerializable, MatchableWithNodeIdToPublishOrDiscardInterface, RebasableToOtherWorkspaceInterface diff --git a/Neos.ContentRepository.Core/Classes/Feature/NodeDuplication/NodeDuplicationCommandHandler.php b/Neos.ContentRepository.Core/Classes/Feature/NodeDuplication/NodeDuplicationCommandHandler.php index cce5dd61e29..e653031b9d5 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/NodeDuplication/NodeDuplicationCommandHandler.php +++ b/Neos.ContentRepository.Core/Classes/Feature/NodeDuplication/NodeDuplicationCommandHandler.php @@ -16,7 +16,7 @@ use Neos\ContentRepository\Core\CommandHandler\CommandHandlerInterface; use Neos\ContentRepository\Core\CommandHandler\CommandHandlingDependencies; -use Neos\ContentRepository\Core\CommandHandler\CommandInterface; +use Neos\ContentRepository\Core\CommandHandler\PublicCommandInterface; use Neos\ContentRepository\Core\ContentRepository; use Neos\ContentRepository\Core\DimensionSpace\ContentDimensionZookeeper; use Neos\ContentRepository\Core\DimensionSpace\DimensionSpacePointSet; @@ -64,12 +64,12 @@ protected function getAllowedDimensionSubspace(): DimensionSpacePointSet return $this->contentDimensionZookeeper->getAllowedDimensionSubspace(); } - public function canHandle(CommandInterface|RebasableToOtherWorkspaceInterface $command): bool + public function canHandle(PublicCommandInterface|RebasableToOtherWorkspaceInterface $command): bool { return method_exists($this, 'handle' . (new \ReflectionClass($command))->getShortName()); } - public function handle(CommandInterface|RebasableToOtherWorkspaceInterface $command, CommandHandlingDependencies $commandHandlingDependencies): EventsToPublish + public function handle(PublicCommandInterface|RebasableToOtherWorkspaceInterface $command, CommandHandlingDependencies $commandHandlingDependencies): EventsToPublish { /** @phpstan-ignore-next-line */ return match ($command::class) { diff --git a/Neos.ContentRepository.Core/Classes/Feature/NodeModification/Command/SetNodeProperties.php b/Neos.ContentRepository.Core/Classes/Feature/NodeModification/Command/SetNodeProperties.php index 6e4bbb0aab9..ec09cde4e34 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/NodeModification/Command/SetNodeProperties.php +++ b/Neos.ContentRepository.Core/Classes/Feature/NodeModification/Command/SetNodeProperties.php @@ -14,7 +14,7 @@ namespace Neos\ContentRepository\Core\Feature\NodeModification\Command; -use Neos\ContentRepository\Core\CommandHandler\CommandInterface; +use Neos\ContentRepository\Core\CommandHandler\PublicCommandInterface; use Neos\ContentRepository\Core\DimensionSpace\OriginDimensionSpacePoint; use Neos\ContentRepository\Core\Feature\NodeModification\Dto\PropertyValuesToWrite; use Neos\ContentRepository\Core\SharedModel\Node\NodeAggregateId; @@ -34,7 +34,7 @@ * * @api commands are the write-API of the ContentRepository */ -final readonly class SetNodeProperties implements CommandInterface +final readonly class SetNodeProperties implements PublicCommandInterface { /** * @param WorkspaceName $workspaceName The workspace in which the set properties operation is to be performed diff --git a/Neos.ContentRepository.Core/Classes/Feature/NodeMove/Command/MoveNodeAggregate.php b/Neos.ContentRepository.Core/Classes/Feature/NodeMove/Command/MoveNodeAggregate.php index 3a756163488..f44e4217b7d 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/NodeMove/Command/MoveNodeAggregate.php +++ b/Neos.ContentRepository.Core/Classes/Feature/NodeMove/Command/MoveNodeAggregate.php @@ -14,7 +14,7 @@ namespace Neos\ContentRepository\Core\Feature\NodeMove\Command; -use Neos\ContentRepository\Core\CommandHandler\CommandInterface; +use Neos\ContentRepository\Core\CommandHandler\PublicCommandInterface; use Neos\ContentRepository\Core\DimensionSpace\DimensionSpacePoint; use Neos\ContentRepository\Core\Feature\Common\MatchableWithNodeIdToPublishOrDiscardInterface; use Neos\ContentRepository\Core\Feature\Common\RebasableToOtherWorkspaceInterface; @@ -43,7 +43,7 @@ * @api commands are the write-API of the ContentRepository */ final readonly class MoveNodeAggregate implements - CommandInterface, + PublicCommandInterface, \JsonSerializable, MatchableWithNodeIdToPublishOrDiscardInterface, RebasableToOtherWorkspaceInterface diff --git a/Neos.ContentRepository.Core/Classes/Feature/NodeReferencing/Command/SetNodeReferences.php b/Neos.ContentRepository.Core/Classes/Feature/NodeReferencing/Command/SetNodeReferences.php index 70da56b2c2d..99a12d9d43a 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/NodeReferencing/Command/SetNodeReferences.php +++ b/Neos.ContentRepository.Core/Classes/Feature/NodeReferencing/Command/SetNodeReferences.php @@ -4,7 +4,7 @@ namespace Neos\ContentRepository\Core\Feature\NodeReferencing\Command; -use Neos\ContentRepository\Core\CommandHandler\CommandInterface; +use Neos\ContentRepository\Core\CommandHandler\PublicCommandInterface; use Neos\ContentRepository\Core\DimensionSpace\OriginDimensionSpacePoint; use Neos\ContentRepository\Core\Feature\NodeReferencing\Dto\NodeReferencesToWrite; use Neos\ContentRepository\Core\SharedModel\Node\NodeAggregateId; @@ -21,7 +21,7 @@ * * @api commands are the write-API of the ContentRepository */ -final readonly class SetNodeReferences implements CommandInterface +final readonly class SetNodeReferences implements PublicCommandInterface { /** * @param WorkspaceName $workspaceName The workspace in which the create operation is to be performed diff --git a/Neos.ContentRepository.Core/Classes/Feature/NodeRemoval/Command/RemoveNodeAggregate.php b/Neos.ContentRepository.Core/Classes/Feature/NodeRemoval/Command/RemoveNodeAggregate.php index 085af255b8c..6ae89afc615 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/NodeRemoval/Command/RemoveNodeAggregate.php +++ b/Neos.ContentRepository.Core/Classes/Feature/NodeRemoval/Command/RemoveNodeAggregate.php @@ -14,7 +14,7 @@ namespace Neos\ContentRepository\Core\Feature\NodeRemoval\Command; -use Neos\ContentRepository\Core\CommandHandler\CommandInterface; +use Neos\ContentRepository\Core\CommandHandler\PublicCommandInterface; use Neos\ContentRepository\Core\DimensionSpace\DimensionSpacePoint; use Neos\ContentRepository\Core\Feature\Common\MatchableWithNodeIdToPublishOrDiscardInterface; use Neos\ContentRepository\Core\Feature\Common\RebasableToOtherWorkspaceInterface; @@ -27,7 +27,7 @@ * @api commands are the write-API of the ContentRepository */ final readonly class RemoveNodeAggregate implements - CommandInterface, + PublicCommandInterface, \JsonSerializable, MatchableWithNodeIdToPublishOrDiscardInterface, RebasableToOtherWorkspaceInterface diff --git a/Neos.ContentRepository.Core/Classes/Feature/NodeRenaming/Command/ChangeNodeAggregateName.php b/Neos.ContentRepository.Core/Classes/Feature/NodeRenaming/Command/ChangeNodeAggregateName.php index 38d1f195ed6..e1bbd66b88d 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/NodeRenaming/Command/ChangeNodeAggregateName.php +++ b/Neos.ContentRepository.Core/Classes/Feature/NodeRenaming/Command/ChangeNodeAggregateName.php @@ -14,7 +14,7 @@ namespace Neos\ContentRepository\Core\Feature\NodeRenaming\Command; -use Neos\ContentRepository\Core\CommandHandler\CommandInterface; +use Neos\ContentRepository\Core\CommandHandler\PublicCommandInterface; use Neos\ContentRepository\Core\Feature\Common\MatchableWithNodeIdToPublishOrDiscardInterface; use Neos\ContentRepository\Core\Feature\Common\RebasableToOtherWorkspaceInterface; use Neos\ContentRepository\Core\Feature\WorkspacePublication\Dto\NodeIdToPublishOrDiscard; @@ -32,7 +32,7 @@ * @api commands are the write-API of the ContentRepository */ final readonly class ChangeNodeAggregateName implements - CommandInterface, + PublicCommandInterface, \JsonSerializable, MatchableWithNodeIdToPublishOrDiscardInterface, RebasableToOtherWorkspaceInterface diff --git a/Neos.ContentRepository.Core/Classes/Feature/NodeTypeChange/Command/ChangeNodeAggregateType.php b/Neos.ContentRepository.Core/Classes/Feature/NodeTypeChange/Command/ChangeNodeAggregateType.php index e979e4d25c1..2a6f1fe8f72 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/NodeTypeChange/Command/ChangeNodeAggregateType.php +++ b/Neos.ContentRepository.Core/Classes/Feature/NodeTypeChange/Command/ChangeNodeAggregateType.php @@ -14,7 +14,7 @@ namespace Neos\ContentRepository\Core\Feature\NodeTypeChange\Command; -use Neos\ContentRepository\Core\CommandHandler\CommandInterface; +use Neos\ContentRepository\Core\CommandHandler\PublicCommandInterface; use Neos\ContentRepository\Core\Feature\Common\MatchableWithNodeIdToPublishOrDiscardInterface; use Neos\ContentRepository\Core\Feature\Common\RebasableToOtherWorkspaceInterface; use Neos\ContentRepository\Core\Feature\NodeCreation\Dto\NodeAggregateIdsByNodePaths; @@ -29,7 +29,7 @@ * @api commands are the write-API of the ContentRepository */ final readonly class ChangeNodeAggregateType implements - CommandInterface, + PublicCommandInterface, \JsonSerializable, MatchableWithNodeIdToPublishOrDiscardInterface, RebasableToOtherWorkspaceInterface diff --git a/Neos.ContentRepository.Core/Classes/Feature/NodeVariation/Command/CreateNodeVariant.php b/Neos.ContentRepository.Core/Classes/Feature/NodeVariation/Command/CreateNodeVariant.php index 54873f489dc..a89edff5cde 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/NodeVariation/Command/CreateNodeVariant.php +++ b/Neos.ContentRepository.Core/Classes/Feature/NodeVariation/Command/CreateNodeVariant.php @@ -14,7 +14,7 @@ namespace Neos\ContentRepository\Core\Feature\NodeVariation\Command; -use Neos\ContentRepository\Core\CommandHandler\CommandInterface; +use Neos\ContentRepository\Core\CommandHandler\PublicCommandInterface; use Neos\ContentRepository\Core\DimensionSpace\OriginDimensionSpacePoint; use Neos\ContentRepository\Core\Feature\Common\MatchableWithNodeIdToPublishOrDiscardInterface; use Neos\ContentRepository\Core\Feature\Common\RebasableToOtherWorkspaceInterface; @@ -30,7 +30,7 @@ * @api commands are the write-API of the ContentRepository */ final readonly class CreateNodeVariant implements - CommandInterface, + PublicCommandInterface, \JsonSerializable, MatchableWithNodeIdToPublishOrDiscardInterface, RebasableToOtherWorkspaceInterface diff --git a/Neos.ContentRepository.Core/Classes/Feature/RootNodeCreation/Command/CreateRootNodeAggregateWithNode.php b/Neos.ContentRepository.Core/Classes/Feature/RootNodeCreation/Command/CreateRootNodeAggregateWithNode.php index 9bbb1f320cc..bd1cbce0ddf 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/RootNodeCreation/Command/CreateRootNodeAggregateWithNode.php +++ b/Neos.ContentRepository.Core/Classes/Feature/RootNodeCreation/Command/CreateRootNodeAggregateWithNode.php @@ -14,7 +14,7 @@ namespace Neos\ContentRepository\Core\Feature\RootNodeCreation\Command; -use Neos\ContentRepository\Core\CommandHandler\CommandInterface; +use Neos\ContentRepository\Core\CommandHandler\PublicCommandInterface; use Neos\ContentRepository\Core\Feature\Common\RebasableToOtherWorkspaceInterface; use Neos\ContentRepository\Core\Feature\NodeCreation\Dto\NodeAggregateIdsByNodePaths; use Neos\ContentRepository\Core\NodeType\NodeTypeName; @@ -31,7 +31,7 @@ * @api commands are the write-API of the ContentRepository */ final readonly class CreateRootNodeAggregateWithNode implements - CommandInterface, + PublicCommandInterface, \JsonSerializable, RebasableToOtherWorkspaceInterface { diff --git a/Neos.ContentRepository.Core/Classes/Feature/RootNodeCreation/Command/UpdateRootNodeAggregateDimensions.php b/Neos.ContentRepository.Core/Classes/Feature/RootNodeCreation/Command/UpdateRootNodeAggregateDimensions.php index 302c05ed895..b41ba3759d7 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/RootNodeCreation/Command/UpdateRootNodeAggregateDimensions.php +++ b/Neos.ContentRepository.Core/Classes/Feature/RootNodeCreation/Command/UpdateRootNodeAggregateDimensions.php @@ -14,7 +14,7 @@ namespace Neos\ContentRepository\Core\Feature\RootNodeCreation\Command; -use Neos\ContentRepository\Core\CommandHandler\CommandInterface; +use Neos\ContentRepository\Core\CommandHandler\PublicCommandInterface; use Neos\ContentRepository\Core\Feature\Common\RebasableToOtherWorkspaceInterface; use Neos\ContentRepository\Core\SharedModel\Node\NodeAggregateId; use Neos\ContentRepository\Core\SharedModel\Workspace\ContentStreamId; @@ -28,7 +28,7 @@ * @api commands are the write-API of the ContentRepository */ final readonly class UpdateRootNodeAggregateDimensions implements - CommandInterface, + PublicCommandInterface, \JsonSerializable, RebasableToOtherWorkspaceInterface { diff --git a/Neos.ContentRepository.Core/Classes/Feature/SubtreeTagging/Command/TagSubtree.php b/Neos.ContentRepository.Core/Classes/Feature/SubtreeTagging/Command/TagSubtree.php index d4d37c8b8cb..2a535c4256f 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/SubtreeTagging/Command/TagSubtree.php +++ b/Neos.ContentRepository.Core/Classes/Feature/SubtreeTagging/Command/TagSubtree.php @@ -14,7 +14,7 @@ namespace Neos\ContentRepository\Core\Feature\SubtreeTagging\Command; -use Neos\ContentRepository\Core\CommandHandler\CommandInterface; +use Neos\ContentRepository\Core\CommandHandler\PublicCommandInterface; use Neos\ContentRepository\Core\DimensionSpace\DimensionSpacePoint; use Neos\ContentRepository\Core\Feature\Common\MatchableWithNodeIdToPublishOrDiscardInterface; use Neos\ContentRepository\Core\Feature\Common\RebasableToOtherWorkspaceInterface; @@ -31,7 +31,7 @@ * @api commands are the write-API of the ContentRepository */ final readonly class TagSubtree implements - CommandInterface, + PublicCommandInterface, \JsonSerializable, RebasableToOtherWorkspaceInterface, MatchableWithNodeIdToPublishOrDiscardInterface diff --git a/Neos.ContentRepository.Core/Classes/Feature/SubtreeTagging/Command/UntagSubtree.php b/Neos.ContentRepository.Core/Classes/Feature/SubtreeTagging/Command/UntagSubtree.php index 1ae9b4624a2..bd9bacbca5a 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/SubtreeTagging/Command/UntagSubtree.php +++ b/Neos.ContentRepository.Core/Classes/Feature/SubtreeTagging/Command/UntagSubtree.php @@ -14,7 +14,7 @@ namespace Neos\ContentRepository\Core\Feature\SubtreeTagging\Command; -use Neos\ContentRepository\Core\CommandHandler\CommandInterface; +use Neos\ContentRepository\Core\CommandHandler\PublicCommandInterface; use Neos\ContentRepository\Core\DimensionSpace\DimensionSpacePoint; use Neos\ContentRepository\Core\Feature\Common\MatchableWithNodeIdToPublishOrDiscardInterface; use Neos\ContentRepository\Core\Feature\Common\RebasableToOtherWorkspaceInterface; @@ -32,7 +32,7 @@ * @api commands are the write-API of the ContentRepository */ final readonly class UntagSubtree implements - CommandInterface, + PublicCommandInterface, \JsonSerializable, RebasableToOtherWorkspaceInterface, MatchableWithNodeIdToPublishOrDiscardInterface diff --git a/Neos.ContentRepository.Core/Classes/Feature/WorkspaceCommandHandler.php b/Neos.ContentRepository.Core/Classes/Feature/WorkspaceCommandHandler.php index cbec3e0d8e0..a81c0cbca4b 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/WorkspaceCommandHandler.php +++ b/Neos.ContentRepository.Core/Classes/Feature/WorkspaceCommandHandler.php @@ -16,7 +16,7 @@ use Neos\ContentRepository\Core\CommandHandler\CommandHandlerInterface; use Neos\ContentRepository\Core\CommandHandler\CommandHandlingDependencies; -use Neos\ContentRepository\Core\CommandHandler\CommandInterface; +use Neos\ContentRepository\Core\CommandHandler\PublicCommandInterface; use Neos\ContentRepository\Core\CommandHandler\CommandSimulatorFactory; use Neos\ContentRepository\Core\ContentRepository; use Neos\ContentRepository\Core\EventStore\DecoratedEvent; @@ -80,12 +80,12 @@ public function __construct( ) { } - public function canHandle(CommandInterface|RebasableToOtherWorkspaceInterface $command): bool + public function canHandle(PublicCommandInterface|RebasableToOtherWorkspaceInterface $command): bool { return method_exists($this, 'handle' . (new \ReflectionClass($command))->getShortName()); } - public function handle(CommandInterface|RebasableToOtherWorkspaceInterface $command, CommandHandlingDependencies $commandHandlingDependencies): \Generator + public function handle(PublicCommandInterface|RebasableToOtherWorkspaceInterface $command, CommandHandlingDependencies $commandHandlingDependencies): \Generator { /** @phpstan-ignore-next-line */ return match ($command::class) { diff --git a/Neos.ContentRepository.Core/Classes/Feature/WorkspaceCreation/Command/CreateRootWorkspace.php b/Neos.ContentRepository.Core/Classes/Feature/WorkspaceCreation/Command/CreateRootWorkspace.php index 2a36c7655cb..6fb498dc767 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/WorkspaceCreation/Command/CreateRootWorkspace.php +++ b/Neos.ContentRepository.Core/Classes/Feature/WorkspaceCreation/Command/CreateRootWorkspace.php @@ -14,7 +14,7 @@ namespace Neos\ContentRepository\Core\Feature\WorkspaceCreation\Command; -use Neos\ContentRepository\Core\CommandHandler\CommandInterface; +use Neos\ContentRepository\Core\CommandHandler\PublicCommandInterface; use Neos\ContentRepository\Core\SharedModel\Workspace\ContentStreamId; use Neos\ContentRepository\Core\SharedModel\Workspace\WorkspaceName; @@ -25,7 +25,7 @@ * * @api commands are the write-API of the ContentRepository */ -final readonly class CreateRootWorkspace implements CommandInterface +final readonly class CreateRootWorkspace implements PublicCommandInterface { /** * @param WorkspaceName $workspaceName Unique name of the workspace to create diff --git a/Neos.ContentRepository.Core/Classes/Feature/WorkspaceCreation/Command/CreateWorkspace.php b/Neos.ContentRepository.Core/Classes/Feature/WorkspaceCreation/Command/CreateWorkspace.php index 4add3ccf28f..3627f7dede6 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/WorkspaceCreation/Command/CreateWorkspace.php +++ b/Neos.ContentRepository.Core/Classes/Feature/WorkspaceCreation/Command/CreateWorkspace.php @@ -14,7 +14,7 @@ namespace Neos\ContentRepository\Core\Feature\WorkspaceCreation\Command; -use Neos\ContentRepository\Core\CommandHandler\CommandInterface; +use Neos\ContentRepository\Core\CommandHandler\PublicCommandInterface; use Neos\ContentRepository\Core\SharedModel\Workspace\ContentStreamId; use Neos\ContentRepository\Core\SharedModel\Workspace\WorkspaceName; @@ -23,7 +23,7 @@ * * @api commands are the write-API of the ContentRepository */ -final readonly class CreateWorkspace implements CommandInterface +final readonly class CreateWorkspace implements PublicCommandInterface { /** * @param WorkspaceName $workspaceName Unique name of the workspace to create diff --git a/Neos.ContentRepository.Core/Classes/Feature/WorkspaceModification/Command/ChangeBaseWorkspace.php b/Neos.ContentRepository.Core/Classes/Feature/WorkspaceModification/Command/ChangeBaseWorkspace.php index dd833312b5f..79c780b5bbd 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/WorkspaceModification/Command/ChangeBaseWorkspace.php +++ b/Neos.ContentRepository.Core/Classes/Feature/WorkspaceModification/Command/ChangeBaseWorkspace.php @@ -4,7 +4,7 @@ namespace Neos\ContentRepository\Core\Feature\WorkspaceModification\Command; -use Neos\ContentRepository\Core\CommandHandler\CommandInterface; +use Neos\ContentRepository\Core\CommandHandler\PublicCommandInterface; use Neos\ContentRepository\Core\SharedModel\Workspace\ContentStreamId; use Neos\ContentRepository\Core\SharedModel\Workspace\WorkspaceName; @@ -13,7 +13,7 @@ * * @api commands are the write-API of the ContentRepository */ -final readonly class ChangeBaseWorkspace implements CommandInterface +final readonly class ChangeBaseWorkspace implements PublicCommandInterface { /** * @param WorkspaceName $workspaceName Name of the affected workspace diff --git a/Neos.ContentRepository.Core/Classes/Feature/WorkspaceModification/Command/DeleteWorkspace.php b/Neos.ContentRepository.Core/Classes/Feature/WorkspaceModification/Command/DeleteWorkspace.php index ab182194ba0..08ccd73c754 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/WorkspaceModification/Command/DeleteWorkspace.php +++ b/Neos.ContentRepository.Core/Classes/Feature/WorkspaceModification/Command/DeleteWorkspace.php @@ -4,7 +4,7 @@ namespace Neos\ContentRepository\Core\Feature\WorkspaceModification\Command; -use Neos\ContentRepository\Core\CommandHandler\CommandInterface; +use Neos\ContentRepository\Core\CommandHandler\PublicCommandInterface; use Neos\ContentRepository\Core\SharedModel\Workspace\WorkspaceName; /** @@ -12,7 +12,7 @@ * * @api commands are the write-API of the ContentRepository */ -final readonly class DeleteWorkspace implements CommandInterface +final readonly class DeleteWorkspace implements PublicCommandInterface { /** * @param WorkspaceName $workspaceName Name of the workspace to delete diff --git a/Neos.ContentRepository.Core/Classes/Feature/WorkspacePublication/Command/DiscardIndividualNodesFromWorkspace.php b/Neos.ContentRepository.Core/Classes/Feature/WorkspacePublication/Command/DiscardIndividualNodesFromWorkspace.php index fec436be434..3c3616206a9 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/WorkspacePublication/Command/DiscardIndividualNodesFromWorkspace.php +++ b/Neos.ContentRepository.Core/Classes/Feature/WorkspacePublication/Command/DiscardIndividualNodesFromWorkspace.php @@ -14,7 +14,7 @@ namespace Neos\ContentRepository\Core\Feature\WorkspacePublication\Command; -use Neos\ContentRepository\Core\CommandHandler\CommandInterface; +use Neos\ContentRepository\Core\CommandHandler\PublicCommandInterface; use Neos\ContentRepository\Core\Feature\WorkspacePublication\Dto\NodeIdsToPublishOrDiscard; use Neos\ContentRepository\Core\SharedModel\Workspace\ContentStreamId; use Neos\ContentRepository\Core\SharedModel\Workspace\WorkspaceName; @@ -24,7 +24,7 @@ * * @api commands are the write-API of the ContentRepository */ -final readonly class DiscardIndividualNodesFromWorkspace implements CommandInterface +final readonly class DiscardIndividualNodesFromWorkspace implements PublicCommandInterface { /** * @param WorkspaceName $workspaceName Name of the affected workspace diff --git a/Neos.ContentRepository.Core/Classes/Feature/WorkspacePublication/Command/DiscardWorkspace.php b/Neos.ContentRepository.Core/Classes/Feature/WorkspacePublication/Command/DiscardWorkspace.php index 5a5b0355945..2aa3d7b46df 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/WorkspacePublication/Command/DiscardWorkspace.php +++ b/Neos.ContentRepository.Core/Classes/Feature/WorkspacePublication/Command/DiscardWorkspace.php @@ -14,7 +14,7 @@ namespace Neos\ContentRepository\Core\Feature\WorkspacePublication\Command; -use Neos\ContentRepository\Core\CommandHandler\CommandInterface; +use Neos\ContentRepository\Core\CommandHandler\PublicCommandInterface; use Neos\ContentRepository\Core\SharedModel\Workspace\ContentStreamId; use Neos\ContentRepository\Core\SharedModel\Workspace\WorkspaceName; @@ -23,7 +23,7 @@ * * @api commands are the write-API of the ContentRepository */ -final readonly class DiscardWorkspace implements CommandInterface +final readonly class DiscardWorkspace implements PublicCommandInterface { /** * @param WorkspaceName $workspaceName Name of the affected workspace diff --git a/Neos.ContentRepository.Core/Classes/Feature/WorkspacePublication/Command/PublishIndividualNodesFromWorkspace.php b/Neos.ContentRepository.Core/Classes/Feature/WorkspacePublication/Command/PublishIndividualNodesFromWorkspace.php index 2394c80ab99..1d87c4cc96a 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/WorkspacePublication/Command/PublishIndividualNodesFromWorkspace.php +++ b/Neos.ContentRepository.Core/Classes/Feature/WorkspacePublication/Command/PublishIndividualNodesFromWorkspace.php @@ -14,7 +14,7 @@ namespace Neos\ContentRepository\Core\Feature\WorkspacePublication\Command; -use Neos\ContentRepository\Core\CommandHandler\CommandInterface; +use Neos\ContentRepository\Core\CommandHandler\PublicCommandInterface; use Neos\ContentRepository\Core\Feature\WorkspacePublication\Dto\NodeIdsToPublishOrDiscard; use Neos\ContentRepository\Core\SharedModel\Workspace\ContentStreamId; use Neos\ContentRepository\Core\SharedModel\Workspace\WorkspaceName; @@ -24,7 +24,7 @@ * * @api commands are the write-API of the ContentRepository */ -final readonly class PublishIndividualNodesFromWorkspace implements CommandInterface +final readonly class PublishIndividualNodesFromWorkspace implements PublicCommandInterface { /** * @param WorkspaceName $workspaceName Name of the affected workspace diff --git a/Neos.ContentRepository.Core/Classes/Feature/WorkspacePublication/Command/PublishWorkspace.php b/Neos.ContentRepository.Core/Classes/Feature/WorkspacePublication/Command/PublishWorkspace.php index 5364d13054d..84c16af7f11 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/WorkspacePublication/Command/PublishWorkspace.php +++ b/Neos.ContentRepository.Core/Classes/Feature/WorkspacePublication/Command/PublishWorkspace.php @@ -14,7 +14,7 @@ namespace Neos\ContentRepository\Core\Feature\WorkspacePublication\Command; -use Neos\ContentRepository\Core\CommandHandler\CommandInterface; +use Neos\ContentRepository\Core\CommandHandler\PublicCommandInterface; use Neos\ContentRepository\Core\SharedModel\Workspace\ContentStreamId; use Neos\ContentRepository\Core\SharedModel\Workspace\WorkspaceName; @@ -23,7 +23,7 @@ * * @api commands are the write-API of the ContentRepository */ -final readonly class PublishWorkspace implements CommandInterface +final readonly class PublishWorkspace implements PublicCommandInterface { /** * @param WorkspaceName $workspaceName Name of the workspace to publish diff --git a/Neos.ContentRepository.Core/Classes/Feature/WorkspaceRebase/Command/RebaseWorkspace.php b/Neos.ContentRepository.Core/Classes/Feature/WorkspaceRebase/Command/RebaseWorkspace.php index 5e9aa2cbc91..4dbefb282c4 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/WorkspaceRebase/Command/RebaseWorkspace.php +++ b/Neos.ContentRepository.Core/Classes/Feature/WorkspaceRebase/Command/RebaseWorkspace.php @@ -14,7 +14,7 @@ namespace Neos\ContentRepository\Core\Feature\WorkspaceRebase\Command; -use Neos\ContentRepository\Core\CommandHandler\CommandInterface; +use Neos\ContentRepository\Core\CommandHandler\PublicCommandInterface; use Neos\ContentRepository\Core\Feature\WorkspaceRebase\Dto\RebaseErrorHandlingStrategy; use Neos\ContentRepository\Core\SharedModel\Workspace\ContentStreamId; use Neos\ContentRepository\Core\SharedModel\Workspace\WorkspaceName; @@ -24,7 +24,7 @@ * * @api commands are the write-API of the ContentRepository */ -final readonly class RebaseWorkspace implements CommandInterface +final readonly class RebaseWorkspace implements PublicCommandInterface { /** * @param WorkspaceName $workspaceName Name of the workspace that should be rebased