Skip to content

Commit

Permalink
introduce event bus
Browse files Browse the repository at this point in the history
  • Loading branch information
SirDomin committed Nov 19, 2020
1 parent b10b272 commit 0def0d8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/Sylius/Bundle/ApiBundle/Resources/config/app/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ framework:
middleware:
- 'validation'
- 'doctrine_transaction'
sylius_event.bus:
middleware:
- 'validation'
- 'doctrine_transaction'
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
<service id="Sylius\Bundle\ApiBundle\CommandHandler\Checkout\CompleteOrderHandler">
<argument type="service" id="sylius.repository.order"/>
<argument type="service" id="sm.factory" />
<argument type="service" id="sylius_default.bus" />
<argument type="service" id="sylius_event.bus" />
<tag name="messenger.message_handler" bus="sylius_default.bus" />
</service>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<service id="Sylius\Bundle\ApiBundle\EventHandler\OrderCompletedHandler">
<argument type="service" id="message_bus" />
<argument type="service" id="sylius.repository.order" />
<tag name="messenger.message_handler" bus="sylius_default.bus"/>
<tag name="messenger.message_handler" bus="sylius_event.bus"/>
</service>
</services>
</container>

0 comments on commit 0def0d8

Please sign in to comment.