QuickStart
in package
Builds a working command bus with minimum fuss.
Currently, the default setup is:
- Handlers instances in memory
- The expected handler method is always "handle"
- And only one command at a time can be executed.
This factory is a decent place to start trying out Tactician but you're better off moving to a custom setup or a framework bundle/module/provider in the long run. As you can see, it's not difficult. :)
Table of Contents
- create() : CommandBus
- Creates a default CommandBus that you can get started with.
Methods
create()
Creates a default CommandBus that you can get started with.
public
static create(array<string|int, mixed> $commandToHandlerMap) : CommandBus
Parameters
- $commandToHandlerMap : array<string|int, mixed>