ContentStreamCommandHandler
final class ContentStreamCommandHandler implements CommandHandlerInterface (View source)
internal | from userland, you'll use ContentRepository::handle to dispatch commands |
INTERNALS. Only to be used from WorkspaceCommandHandler!!!
Methods
bool
EventsToPublish
void
requireContentStreamToNotExistYet(ContentStreamId $contentStreamId, ContentRepository $contentRepository)
No description
void
requireContentStreamToExist(ContentStreamId $contentStreamId, ContentRepository $contentRepository)
No description
Details
bool
canHandle(CommandInterface $command)
No description
EventsToPublish
handle(CommandInterface $command, ContentRepository $contentRepository)
No description
protected void
requireContentStreamToNotExistYet(ContentStreamId $contentStreamId, ContentRepository $contentRepository)
No description
protected void
requireContentStreamToExist(ContentStreamId $contentStreamId, ContentRepository $contentRepository)
No description