Skip to content

SynchronousCommandBus


Properties

resolver

protected \Codefy\CommandBus\CommandHandlerResolver $resolver

Methods

__construct

public __construct(\Codefy\CommandBus\CommandHandlerResolver $resolver = new \Codefy\CommandBus\Resolvers\NativeCommandHandlerResolver()): mixed

Parameters:

Parameter Type Description
$resolver \Codefy\CommandBus\CommandHandlerResolver

execute

Execute a command.

public execute(\Codefy\CommandBus\Command $command): mixed

Parameters:

Parameter Type Description
$command \Codefy\CommandBus\Command

Throws: