Skip to content

Commit

Permalink
Use explicit bus in handlers configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
GSadee committed May 31, 2021
1 parent 11a9ae1 commit 4c46421
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Resources/config/services/command_bus.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
<argument type="service" id="sylius_refund.manager.credit_memo" />
<argument type="service" id="sylius.event_bus" />
<argument type="service" id="sylius.repository.order" />
<tag name="messenger.message_handler"/>
<tag name="messenger.message_handler" bus="sylius.command_bus" />
</service>

<service id="Sylius\RefundPlugin\CommandHandler\SendCreditMemoHandler" >
<argument type="service" id="sylius_refund.repository.credit_memo"/>
<argument type="service" id="Sylius\RefundPlugin\Sender\CreditMemoEmailSender"/>
<tag name="messenger.message_handler" />
<tag name="messenger.message_handler" bus="sylius.command_bus" />
</service>
</services>
</container>

0 comments on commit 4c46421

Please sign in to comment.