Skip to content

Commit

Permalink
TASK: Declare lower level content stream commands as internal
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mhsdesign committed Jul 12, 2024
1 parent 4b674d6 commit 35155bd
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 35155bd

Please sign in to comment.