final class CommandBus (View source)

internal  
 

Implementation Detail of {ContentRepository::handle}, which does the command dispatching to the different {CommandHandlerInterface} implementation.

Methods

__construct(CommandHandlingDependencies $commandHandlingDependencies, CommandHandlerInterface ...$handlers)

No description

handle(CommandInterface|RebasableToOtherWorkspaceInterface $command)

The handler only calculate which events they want to have published, but do not do the publishing themselves

Details

__construct(CommandHandlingDependencies $commandHandlingDependencies, CommandHandlerInterface ...$handlers)

No description

Parameters

CommandHandlingDependencies $commandHandlingDependencies
CommandHandlerInterface ...$handlers

EventsToPublish|Generator handle(CommandInterface|RebasableToOtherWorkspaceInterface $command)

The handler only calculate which events they want to have published, but do not do the publishing themselves

CommandBus withAdditionalHandlers(CommandHandlerInterface ...$handlers)

No description

Parameters

CommandHandlerInterface ...$handlers

Return Value

CommandBus