Skip to content

Commit

Permalink
Merge pull request #12 from Jeckel-Lab/feature/#10-flush-entity-on-ev…
Browse files Browse the repository at this point in the history
…ent-dispatch

Update config to decorate event dispatcher
  • Loading branch information
jeckel committed Mar 30, 2020
2 parents 5210eb5 + 5896cac commit 979286a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Resources/config/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@
<argument type="service" id="jeckellab.command.bus.command_dispatcher" />
<argument type="service" id="doctrine.orm.default_entity_manager" />
</service>
<service id="jeckellab.command.bus.event_dispatcher_decorator" class="JeckelLab\CommandDispatcher\CommandBus\EventDispatcherDecorator">
<service id="jeckellab.command.bus.event_dispatcher.entity_flush_decorator" class="JeckelLab\CommandDispatcherBundle\EventDispatcher\Decorator\EntityFlushDecorator">
<argument type="service" id="event_dispatcher" />
<argument type="service" id="doctrine.orm.default_entity_manager" />
</service>
<service id="jeckellab.command.bus.event_dispatcher_decorator" class="JeckelLab\CommandDispatcher\CommandBus\EventDispatcherDecorator">
<argument type="service" id="jeckellab.command.bus.event_dispatcher.entity_flush_decorator" />
<argument type="service" id="jeckellab.command.bus.entity_flush_decorator" />
</service>

Expand Down

0 comments on commit 979286a

Please sign in to comment.