Skip to content

Commit

Permalink
Details
Browse files Browse the repository at this point in the history
  • Loading branch information
nWidart committed Feb 2, 2015
1 parent 510c0c0 commit bf2ad5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions readme.md
Expand Up @@ -178,7 +178,7 @@ Now just pass either an array of command handlers to the `laravelbroadway.comman

``` php
$partCommandHandler = new PartCommandHandler($this->app['Modules\Parts\Repositories\EventStorePartRepository']);
$someOtherCommandHandler = new PartCommandHandler($this->app['Modules\Things\Repositories\EventStoreSomeRepository']);
$someOtherCommandHandler = new SomeOtherCommandHandler($this->app['Modules\Things\Repositories\EventStoreSomeRepository']);

$this->app['laravelbroadway.command.registry']->subscribe([
$partCommandHandler,
Expand All @@ -199,7 +199,7 @@ Example:

``` php
$partsThatWereManfacturedProjector = new PartsThatWereManufacturedProjector($this->app['Modules\Parts\Repositories\ReadModelPartRepository']);
$someOtherProjector = new SomeProjector($this->app['Modules\Things\Repositories\ReadModelSomeRepository']);
$someOtherProjector = new SomeOtherProjector($this->app['Modules\Things\Repositories\ReadModelSomeRepository']);

$this->app['laravelbroadway.event.registry']->subscribe([
$partsThatWereManfacturedProjector,
Expand Down

0 comments on commit bf2ad5c

Please sign in to comment.