From 92ab0d311a0facad11814d6313e68c59016b02b8 Mon Sep 17 00:00:00 2001 From: mhsdesign <85400359+mhsdesign@users.noreply.github.com> Date: Sun, 7 Jul 2024 09:58:16 +0200 Subject: [PATCH] TASK: Declare lower level content stream commands as internal With the content graph / subgraph operating on workspaces, there is no API way of fetching from an arbitrary content stream by id. And by not being able to access it we declare creating content streams or doing any low level work with it as internal. --- .../Feature/ContentStreamClosing/Command/CloseContentStream.php | 2 +- .../ContentStreamClosing/Command/ReopenContentStream.php | 2 +- .../ContentStreamCreation/Command/CreateContentStream.php | 2 +- .../Feature/ContentStreamForking/Command/ForkContentStream.php | 2 +- .../ContentStreamRemoval/Command/RemoveContentStream.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Neos.ContentRepository.Core/Classes/Feature/ContentStreamClosing/Command/CloseContentStream.php b/Neos.ContentRepository.Core/Classes/Feature/ContentStreamClosing/Command/CloseContentStream.php index f0143c9d3fe..9ba432e9135 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/ContentStreamClosing/Command/CloseContentStream.php +++ b/Neos.ContentRepository.Core/Classes/Feature/ContentStreamClosing/Command/CloseContentStream.php @@ -18,7 +18,7 @@ use Neos\ContentRepository\Core\SharedModel\Workspace\ContentStreamId; /** - * @api commands are the write-API of the ContentRepository + * @internal implementation detail, please use the higher level workspace commands instead. */ final readonly class CloseContentStream implements CommandInterface { diff --git a/Neos.ContentRepository.Core/Classes/Feature/ContentStreamClosing/Command/ReopenContentStream.php b/Neos.ContentRepository.Core/Classes/Feature/ContentStreamClosing/Command/ReopenContentStream.php index 7f7fab54218..f2b3c287cee 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/ContentStreamClosing/Command/ReopenContentStream.php +++ b/Neos.ContentRepository.Core/Classes/Feature/ContentStreamClosing/Command/ReopenContentStream.php @@ -19,7 +19,7 @@ use Neos\ContentRepository\Core\SharedModel\Workspace\ContentStreamState; /** - * @api commands are the write-API of the ContentRepository + * @internal implementation detail, please use the higher level workspace commands instead. */ final readonly class ReopenContentStream implements CommandInterface { diff --git a/Neos.ContentRepository.Core/Classes/Feature/ContentStreamCreation/Command/CreateContentStream.php b/Neos.ContentRepository.Core/Classes/Feature/ContentStreamCreation/Command/CreateContentStream.php index e3ef05736df..976ca169b11 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/ContentStreamCreation/Command/CreateContentStream.php +++ b/Neos.ContentRepository.Core/Classes/Feature/ContentStreamCreation/Command/CreateContentStream.php @@ -21,7 +21,7 @@ * CreateContentStream for creating the FIRST content stream. * All other content streams will be FORKED from this FIRST content stream. * - * @api commands are the write-API of the ContentRepository + * @internal implementation detail, please use the higher level workspace commands instead. */ final readonly class CreateContentStream implements CommandInterface { diff --git a/Neos.ContentRepository.Core/Classes/Feature/ContentStreamForking/Command/ForkContentStream.php b/Neos.ContentRepository.Core/Classes/Feature/ContentStreamForking/Command/ForkContentStream.php index d049c6a01d3..2823d148b94 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/ContentStreamForking/Command/ForkContentStream.php +++ b/Neos.ContentRepository.Core/Classes/Feature/ContentStreamForking/Command/ForkContentStream.php @@ -20,7 +20,7 @@ /** * ForkContentStream for creating a new fork of a content stream. * - * @api commands are the write-API of the ContentRepository + * @internal implementation detail, please use the higher level workspace commands instead. */ final readonly class ForkContentStream implements CommandInterface { diff --git a/Neos.ContentRepository.Core/Classes/Feature/ContentStreamRemoval/Command/RemoveContentStream.php b/Neos.ContentRepository.Core/Classes/Feature/ContentStreamRemoval/Command/RemoveContentStream.php index 45b2512c34e..b5728a2a702 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/ContentStreamRemoval/Command/RemoveContentStream.php +++ b/Neos.ContentRepository.Core/Classes/Feature/ContentStreamRemoval/Command/RemoveContentStream.php @@ -20,7 +20,7 @@ /** * Command to remove an existing content stream * - * @api commands are the write-API of the ContentRepository + * @internal implementation detail, please use the higher level workspace commands instead. */ final readonly class RemoveContentStream implements CommandInterface {