From 35155bdc26fd4948646b6286a95da7e16d8afc11 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. --- .../ContentStreamClosing/Command/CloseContentStream.php | 4 +++- .../ContentStreamClosing/Command/ReopenContentStream.php | 4 +++- .../ContentStreamCreation/Command/CreateContentStream.php | 4 +++- .../ContentStreamForking/Command/ForkContentStream.php | 4 +++- .../ContentStreamRemoval/Command/RemoveContentStream.php | 4 +++- 5 files changed, 15 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..16dfd711342 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/ContentStreamClosing/Command/CloseContentStream.php +++ b/Neos.ContentRepository.Core/Classes/Feature/ContentStreamClosing/Command/CloseContentStream.php @@ -18,7 +18,9 @@ use Neos\ContentRepository\Core\SharedModel\Workspace\ContentStreamId; /** - * @api commands are the write-API of the ContentRepository + * @internal implementation detail. You must not use this command directly. + * Direct use may lead to hard to revert senseless state in your content repository. + * 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..41436f34d75 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/ContentStreamClosing/Command/ReopenContentStream.php +++ b/Neos.ContentRepository.Core/Classes/Feature/ContentStreamClosing/Command/ReopenContentStream.php @@ -19,7 +19,9 @@ use Neos\ContentRepository\Core\SharedModel\Workspace\ContentStreamState; /** - * @api commands are the write-API of the ContentRepository + * @internal implementation detail. You must not use this command directly. + * Direct use may lead to hard to revert senseless state in your content repository. + * 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..8644048817e 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/ContentStreamCreation/Command/CreateContentStream.php +++ b/Neos.ContentRepository.Core/Classes/Feature/ContentStreamCreation/Command/CreateContentStream.php @@ -21,7 +21,9 @@ * 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. You must not use this command directly. + * Direct use may lead to hard to revert senseless state in your content repository. + * 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..5ca25937112 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/ContentStreamForking/Command/ForkContentStream.php +++ b/Neos.ContentRepository.Core/Classes/Feature/ContentStreamForking/Command/ForkContentStream.php @@ -20,7 +20,9 @@ /** * ForkContentStream for creating a new fork of a content stream. * - * @api commands are the write-API of the ContentRepository + * @internal implementation detail. You must not use this command directly. + * Direct use may lead to hard to revert senseless state in your content repository. + * 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..f79c0fe1da8 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/ContentStreamRemoval/Command/RemoveContentStream.php +++ b/Neos.ContentRepository.Core/Classes/Feature/ContentStreamRemoval/Command/RemoveContentStream.php @@ -20,7 +20,9 @@ /** * Command to remove an existing content stream * - * @api commands are the write-API of the ContentRepository + * @internal implementation detail. You must not use this command directly. + * Direct use may lead to hard to revert senseless state in your content repository. + * Please use the higher level workspace commands instead. */ final readonly class RemoveContentStream implements CommandInterface {