| 1 | <?php namespace Nwidart\LaravelBroadway\Registries; |
||
| 5 | class CommandRegistry extends BaseRegistry implements Registry |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var CommandBus |
||
| 9 | */ |
||
| 10 | private $commandBus; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @param CommandBus $commandBus |
||
| 14 | */ |
||
| 15 | public function __construct(CommandBus $commandBus) |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Subscribe the given array of command handlers on the command bus |
||
| 22 | * @param array $handlers |
||
| 23 | */ |
||
| 24 | public function subscribe($handlers) |
||
| 32 | } |
||
| 33 |